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