https://github.com/bsutton/function_types
Defines the function types with different arities via `typedefs`.
https://github.com/bsutton/function_types
Last synced: 5 months ago
JSON representation
Defines the function types with different arities via `typedefs`.
- Host: GitHub
- URL: https://github.com/bsutton/function_types
- Owner: bsutton
- License: bsd-3-clause
- Created: 2021-09-26T23:18:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-08T15:08:16.000Z (about 5 years ago)
- Last Synced: 2025-07-02T08:45:49.316Z (12 months ago)
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
function_types
=====
Defines the function types with different arities via `typedefs`.
Version: 0.1.0
```dart
import 'package:function_types/function_types.dart';
void main() {
Func2 mul = (int a, int b) => a * b;
print(mul(3, 2));
add = (int a, int b) => a + b;
print(add(3, 2));
}
Func2 add;
```