initialize method
Future<bool>
initialize(
- String? defaultIcon,
- List<
NotificationChannel> channels, { - List<
NotificationChannelGroup> ? channelGroups, - bool debug = false,
override
INITIALIZING METHODS *********************************************
Initializes the plugin, creating a default icon and the initial channels. Only needs
to be called at main.dart once.
OBS: defaultIcon needs to be a Resource media type
OBS 2: channels are updated if they already exists
Implementation
@override
Future<bool> initialize(
String? defaultIcon, List<NotificationChannel> channels,
{List<NotificationChannelGroup>? channelGroups, bool debug = false}) {
return LocalNotificationsPlatform.instance.initialize(
defaultIcon, channels,
channelGroups: channelGroups, debug: debug);
}