cooperation 1.0.0 copy "cooperation: ^1.0.0" to clipboard
cooperation: ^1.0.0 copied to clipboard

A Flutter plugin that calls dart function in native code.

example/lib/main.dart

import 'package:cooperation_example/entry.dart';
import 'package:cooperation/cooperation.dart';

void main() {
}

@pragma('vm:entry-point')
entry() {
  Cooperation.instance.addHandler('m1', (arguments) async {
    return arguments?['platform'];
  });
  Cooperation.instance.addHandler('m2', (arguments) async {
    return 'm2';
  });
}
3
likes
130
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that calls dart function in native code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on cooperation