showToast method
Shows a native Android toast with the specified message and duration.
Implementation
@override
Future<void> showToast(
String message, {
ToastLength length = ToastLength.short,
}) async {
final Map<String, dynamic> arguments = {
'message': message,
'length': length == ToastLength.short ? 'short' : 'long',
};
await methodChannel.invokeMethod('showToast', arguments);
}