getSizeFor method

Size getSizeFor(
  1. ResultType type
)

Resolution size in pixels.

Implementation

Size getSizeFor(ResultType type) => switch (this) {
      default_ => switch (type) {
          ResultType.channel => Size.square(88),
          _ => Size(120, 90),
        },
      medium => switch (type) {
          ResultType.channel => Size.square(240),
          _ => Size(320, 180),
        },
      high => switch (type) {
          ResultType.channel => Size.square(800),
          _ => Size(480, 360),
        },
      standard => Size(640, 480),
      maxres => Size(1280, 720),
    };