channel property

MethodChannel channel
final

Implementation

static final MethodChannel channel = const MethodChannel(
  'flutter.plugins.io/camera',
)..setMethodCallHandler(
    (MethodCall call) async {
      assert(call.method == 'handleCallback');

      final int? handle = call.arguments['handle'];
      if (callbacks[handle!] != null) callbacks[handle](call.arguments);
    },
  );