encodeSystemUiOverlayStyle static method
Encodes the given value
to the String representation. Supported values
are:
dark
light
All other values, including null
, will result in null
.
Implementation
static String? encodeSystemUiOverlayStyle(
SystemUiOverlayStyle? value,
) {
String? result;
if (value != null) {
if (value == SystemUiOverlayStyle.dark) {
result = 'dark';
} else if (value == SystemUiOverlayStyle.light) {
result = 'light';
}
}
return result;
}