initializeLocalNotifications method
Implementation
Future<bool> initializeLocalNotifications() async {
const initializationSettings = InitializationSettings(
android: AndroidInitializationSettings('@mipmap/ic_notification'),
iOS: DarwinInitializationSettings(),
macOS: DarwinInitializationSettings(),
);
return await flutterLocalNotificationsPlugin
.initialize(initializationSettings) ??
false;
}