intToStreamType function

StreamType intToStreamType(
  1. int? type
)

Implementation

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