nativeMethodCallHandler method

Future nativeMethodCallHandler(
  1. MethodCall call
)

Implementation

Future<dynamic> nativeMethodCallHandler(MethodCall call) async {
  switch (call.method) {
    case "route":
      String? route = call.arguments["route"];
      _onRoute(route);
      return true;
    default:
      return false;
  }
}