toNotebookInstanceSortOrder method

NotebookInstanceSortOrder toNotebookInstanceSortOrder()

Implementation

NotebookInstanceSortOrder toNotebookInstanceSortOrder() {
  switch (this) {
    case 'Ascending':
      return NotebookInstanceSortOrder.ascending;
    case 'Descending':
      return NotebookInstanceSortOrder.descending;
  }
  throw Exception('$this is not known in enum NotebookInstanceSortOrder');
}