fl_channel 1.0.3 copy "fl_channel: ^1.0.3" to clipboard
fl_channel: ^1.0.3 copied to clipboard

channel for native communication,Support ios macos android only

fl_channel #

  • FlChannel()FlEventChannel()EventChannel 封装
Future<void> create() async {
  final flEvent = await FlChannel().create(name);
}

Future<void> listen() async {
  final state = flEvent?.listen((dynamic data) {});
}

Future<void> sendFromNative() async {
  final status = await FlChannel().sendEventFromNative(
    name,
    'Flutter to Native',
  );
}

Future<void> pause() async {
  await flEvent?.pause();
}

Future<void> resume() async {
  await flEvent?.resume();
}

Future<void> dispose() async {
  await FlChannel().dispose(name);
}

1
likes
160
points
135
downloads

Publisher

unverified uploader

Weekly Downloads

channel for native communication,Support ios macos android only

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fl_channel