handleMethodCall method
Handles method calls from the Flutter code.
If the method call is 'restartApp', it calls the restart
method with the given webOrigin
.
Otherwise, it returns 'false' to signify that the method call was not recognized.
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'restartApp':
return restart(call.arguments as String?);
default:
return 'false';
}
}