fromInt static method

EntryType? fromInt(
  1. int n
)

Implementation

static EntryType? fromInt(int n) {
  switch (n) {
    case 1: return EntryType.file;
    case 2: return EntryType.directory;
    default: return null;
  }
}