setHandler method

  1. @override
dynamic setHandler(
  1. Future handler(
    1. MethodCall call
    )?
)
override

(Applicable to iOS only - pass URL to Flutter through 'handle_url' methodCall.method - refer to example)

Implementation

@override
setHandler(Future<dynamic> Function(MethodCall call)? handler) {
  methodChannel.setMethodCallHandler(handler);
}