encodeBottomNavigationBarType static method
Encodes the given value
to the String representation. Supported values
are:
fixed
shifting
All other values, including null
, will result in null
.
Implementation
static String? encodeBottomNavigationBarType(BottomNavigationBarType? value) {
String? result;
if (value != null) {
switch (value) {
case BottomNavigationBarType.fixed:
result = 'fixed';
break;
case BottomNavigationBarType.shifting:
result = 'shifting';
break;
}
}
return result;
}