fromString static method

VideoProjection? fromString(
  1. String string
)

Implementation

static VideoProjection? fromString(String string) => switch (string) {
      "rectangular" => rectangular,
      "360" => threeSixty,
      _ => null,
    };