fromWire static method
- String? value
Parses a wire string representation into an SdkTheme.
Defaults to SdkTheme.system if value is null or unrecognised.
Example
final theme = SdkTheme.fromWire('ocean'); // SdkTheme.ocean
Implementation
static SdkTheme fromWire(String? value) {
for (final t in SdkTheme.values) {
if (t.wireValue == value) return t;
}
return SdkTheme.system;
}