function_types 0.0.2 copy "function_types: ^0.0.2" to clipboard
function_types: ^0.0.2 copied to clipboard

discontinued
outdated

Defines the function types with different arities via `typedefs`.

function_types #

Defines the function types with different arities via typedefs.

Version: 0.0.2

import 'package:function_types/function_types.dart';

void main() {
  Func2<int, int, int> mul = (int a, int b) => a * b;
  print(mul(3, 2));

  add = (int a, int b) => a + b;
  print(add(3, 2));
}

Func2<int, int, int> add;
1
likes
30
pub points
69%
popularity

Publisher

unverified uploader

Defines the function types with different arities via `typedefs`.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on function_types