isNotificationEnabled method

bool isNotificationEnabled()

Implementation

bool isNotificationEnabled() {
  bool? isEnabled = _prefs.getBool('notification.enabled');
  if (null != isEnabled) {
    if (kDebugMode) {
      print('isEnabled = $isEnabled');
    }
    return isEnabled;
  }
  return true;
}