value property Null safety

String? value

Implementation

String? get value {
  switch (this) {
    case SortType.asc:
      return 'asc';
    case SortType.desc:
      return 'desc';
    case SortType.count:
      return 'count';
    default:
      return null;
  }
}