fromString static method

OutputMode fromString(
  1. String value
)

Implementation

static OutputMode fromString(String value) => switch (value) {
  'write' => OutputMode.write,
  'show' => OutputMode.show,
  'json' => OutputMode.json,
  'none' => OutputMode.none,
  _ => OutputMode.write,
};