showBigTextNotification method
Future<int>
showBigTextNotification({
- required String title,
- required String message,
- required String bigText,
- String? channelId,
- NotificationImportance? importance,
- bool? autoCancel,
- String? targetScreen,
- Map<
String, dynamic> ? extraData,
override
Show a notification with big text style.
Returns the notification ID.
Implementation
@override
Future<int> showBigTextNotification({
required String title,
required String message,
required String bigText,
String? channelId,
NotificationImportance? importance,
bool? autoCancel,
String? targetScreen,
Map<String, dynamic>? extraData,
}) async {
final result = await methodChannel
.invokeMethod<int>('showBigTextNotification', {
'title': title,
'message': message,
'bigText': bigText,
'channelId': channelId,
'priority': importance?.value,
'autoCancel': autoCancel,
'targetScreen': targetScreen,
'extraData': extraData,
});
return result ?? -1;
}