toSortContextsBy method

SortContextsBy toSortContextsBy()

Implementation

SortContextsBy toSortContextsBy() {
  switch (this) {
    case 'Name':
      return SortContextsBy.name;
    case 'CreationTime':
      return SortContextsBy.creationTime;
  }
  throw Exception('$this is not known in enum SortContextsBy');
}