createNotificationChannel method

Future<void> createNotificationChannel(
  1. AndroidNotificationChannel notificationChannel
)

Creates a notification channel.

This method is only applicable to Android versions 8.0 or newer.

Implementation

Future<void> createNotificationChannel(
  AndroidNotificationChannel notificationChannel,
) => _channel.invokeMethod(
  'createNotificationChannel',
  notificationChannel.toMap(),
);