showBigTextNotification method

  1. @override
Future<int> showBigTextNotification({
  1. required String title,
  2. required String message,
  3. required String bigText,
  4. String? channelId,
  5. NotificationImportance? importance,
  6. bool? autoCancel,
  7. String? targetScreen,
  8. 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;
}