getNavigationRailLabelType method

NavigationRailLabelType? getNavigationRailLabelType(
  1. String? value
)

Implementation

NavigationRailLabelType? getNavigationRailLabelType(String? value) {
  if (value == null || value.isEmpty) {
    return null;
  }

  switch (value) {
    case "none":
      return NavigationRailLabelType.none;
    case "selected":
      return NavigationRailLabelType.selected;
    case "all":
      return NavigationRailLabelType.all;
    default:
      return null;
  }
}