setChannel abstract method

Future<void> setChannel(
  1. NotificationChannel notificationChannel, {
  2. bool forceUpdate = false,
})

Set a new notification channel or updates if already exists forceUpdate: completely updates the channel on Android Oreo and above, but cancels all current notifications.

Implementation

Future<void> setChannel(
  NotificationChannel notificationChannel, {
  bool forceUpdate = false,
});