showToast method

  1. @override
Future<void> showToast(
  1. String message
)
override

Shows a native toast message on the current platform

message - The message to display in the toast

Throws PlatformException if the toast cannot be displayed

Implementation

@override
Future<void> showToast(String message) async {
  await methodChannel.invokeMethod<void>('showToast', {'message': message});
}