availableActions property Null safety

Future<Map<NotificationTroubleshootActions, bool>> availableActions

Available actions on device. If the device has actions available, user can run startIntent for each one to check the settings on these screens and correct them if necessary

Implementation

static Future<Map<NotificationTroubleshootActions, bool>> get availableActions async {
  if (kIsWeb || !Platform.isAndroid) {
    return {};
  }
  Map<String, bool>? version = await _channel.invokeMapMethod<String, bool>('availableActions');
  version ??= {};
  return version.map((key, value) => MapEntry<NotificationTroubleshootActions, bool>(_mapActionString(key), value));
}