initNotifications function

Future<void> initNotifications()

Implementation

Future<void> initNotifications() async {
    print("initializing notifications");
    const AndroidInitializationSettings asa = AndroidInitializationSettings('app_icon');
    final InitializationSettings initializationSettings = InitializationSettings(android: asa);
    await flutterLocalNotificationsPlugin.initialize(initializationSettings);
}