parse static method

SiteTheme parse(
  1. String? s
)

Parses the wire value.

Implementation

static SiteTheme parse(String? s) => switch (s) {
  'light' => SiteTheme.light,
  'dark' => SiteTheme.dark,
  _ => SiteTheme.auto,
};