toName method

String toName(
  1. String group
)

Implementation

String toName(String group) {
  if (group == ActionGroups.unset) {
    return 'Unset Action';
  }
  if (group == ActionGroups.uiState) {
    return 'UI State';
  }
  if (group == ActionGroups.pageViewController) {
    return 'Page View Controller';
  }
  if (group == ActionGroups.cms) {
    return 'CMS';
  }
  if (group == ActionGroups.console) {
    return 'Console';
  }
  if (group == ActionGroups.navigator) {
    return 'Navigator';
  }
  if (group == ActionGroups.hapticFeedback) {
    return 'Haptic Feedback';
  }
  if (group == ActionGroups.variables) {
    return 'Variables';
  }
  if (group == ActionGroups.condition) {
    return 'Condition';
  }
  if (group == ActionGroups.listViewController) {
    return 'List View Controller';
  }
  if (group == ActionGroups.apiRequest) {
    return 'API Request';
  }
  if (group == ActionGroups.cubit) {
    return 'Blocs';
  }
  if (group == ActionGroups.parameter) {
    return 'Parameter';
  }
  if (group == ActionGroups.supabase) {
    return 'Supabase';
  }
  throw Exception('Unknown action group: $group');
}