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