showNotification method
void
showNotification({})
override
Shows a notification with the specified title, message, and duration.
title is the title of the notification.
message is an optional message content of the notification.
duration is the duration for which the notification should be displayed.
Implementation
@override
void showNotification(
{required String title, String? message, required double duration}) {
methodChannel.invokeMethod<void>(Method.SHOW_NOTIFICATION,
{'title': title, 'message': message, 'duration': duration});
}