encodeOverflowBoxFit static method
Encodes the value
to a String. Supported values are:
deferToChild
max
Implementation
static String? encodeOverflowBoxFit(OverflowBoxFit? value) {
String? result;
if (value != null) {
switch (value) {
case OverflowBoxFit.deferToChild:
result = 'deferToChild';
break;
case OverflowBoxFit.max:
result = 'max';
break;
}
}
return _stripDynamicNull(result);
}