streamTypeToInt function

int streamTypeToInt(
  1. StreamType type
)

Implementation

int streamTypeToInt(StreamType type) {
  switch (type) {
    case StreamType.high:
      return 2;
    case StreamType.medium:
      return 1;
    case StreamType.low:
      return 0;
  }
}