setMethodCallHandler method

void setMethodCallHandler(
  1. Future handler(
    1. FlutterAndroidLauncherMethodCall call
    )?
)

Implementation

void setMethodCallHandler(Future<dynamic> Function(FlutterAndroidLauncherMethodCall call)? handler) {
  FlutterAndroidLauncherPlatform.instance.setMethodCallHandler((MethodCall call) async {
    if (handler != null) {
      return await handler(FlutterAndroidLauncherMethodCall(call.method, call.arguments));
    }
    return null;
  });
}