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