getAppLifeCycle method

  1. @override
Future<NotificationLifeCycle> getAppLifeCycle()
override

Get the current Local time zone identifier

Implementation

@override
Future<NotificationLifeCycle> getAppLifeCycle() async {
  final String? lifeCycleRaw =
      await methodChannel.invokeMethod(CHANNEL_METHOD_GET_APP_LIFE_CYCLE);
  return NotificationLifeCycle.values
      .firstWhere((e) => e.name == lifeCycleRaw);
}