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

retracted

channel for native communication,Support ios macos android only

fl_channel #

  • FlEvent() 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
0
points
135
downloads

Publisher

unverified uploader

Weekly Downloads

channel for native communication,Support ios macos android only

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fl_channel