showBigTextNotification method

  1. @override
Future<int> showBigTextNotification({
  1. required String title,
  2. required String message,
  3. required String bigText,
  4. String? channelId,
  5. int? priority,
  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,
  int? priority,
  bool? autoCancel,
  String? targetScreen,
  Map<String, dynamic>? extraData,
}) async {
  final result = await methodChannel
      .invokeMethod<int>('showBigTextNotification', {
        'title': title,
        'message': message,
        'bigText': bigText,
        if (channelId != null) 'channelId': channelId,
        if (priority != null) 'priority': priority,
        if (autoCancel != null) 'autoCancel': autoCancel,
        if (targetScreen != null) 'targetScreen': targetScreen,
        if (extraData != null) 'extraData': extraData,
      });
  return result ?? -1;
}