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