encodeStackFit static method
Encodes the given value
to the String representation. Supported values
are:
expand
loose
passthrough
Implementation
static String? encodeStackFit(StackFit? value) {
String? result;
if (value != null) {
switch (value) {
case StackFit.expand:
result = 'expand';
break;
case StackFit.loose:
result = 'loose';
break;
case StackFit.passthrough:
result = 'passthrough';
break;
}
}
return _stripDynamicNull(result);
}