initializeLocalNotifications method
Initialize local notifications
Implementation
Future<bool?>? initializeLocalNotifications() async {
return await _localNotifications?.initialize(
_initializationSettings!,
onDidReceiveBackgroundNotificationResponse:
_onDidReceiveBackgroundNotificationResponse,
onDidReceiveNotificationResponse: _onDidReceiveLocalNotification,
);
}