registerChannel abstract method

void registerChannel(
  1. String channelName, {
  2. Future handler(
    1. MethodCall call
    )?,
})

A method for registering the native method channel.

This method is used to register the channel used for Flutter-native calls.

Implementation

void registerChannel(
  String channelName, {
  Future<dynamic> Function(MethodCall call)? handler,
});