platform_handler 1.1.1 copy "platform_handler: ^1.1.1" to clipboard
platform_handler: ^1.1.1 copied to clipboard

Organize Flutter MethodChannel calls, native callbacks, and request-id based ping-pong responses.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add platform_handler

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  platform_handler: ^1.1.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:platform_handler/platform_handler.dart';
1
likes
160
points
114
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Organize Flutter MethodChannel calls, native callbacks, and request-id based ping-pong responses.

Repository (GitHub)
View/report issues

Topics

#platform-channel #method-channel #native-bridge #callbacks #request-id

License

MIT (license)

Dependencies

enhanced_change_notifier, extension_dart, flutter

More

Packages that depend on platform_handler