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