handleMethodCall method
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'showDialog':
final message = call.arguments['message'];
return _alert(message);
default:
throw PlatformException(
code: 'Unimplemented',
details:
"native_dialog_plus for web doesn't implement '${call.method}'",
);
}
}