tryParse static method
Tries to parse a SystemShell from a String.
Returns null
if the value
does not match any of the shells.
Implementation
static SystemShell? tryParse(String value) {
for (final shell in SystemShell.values) {
if (value == shell.name || value == shell.toString()) return shell;
}
return null;
}