parseStackFit function
Implementation
StackFit? parseStackFit(String? value) {
if (value == null) return null;
switch (value) {
case 'loose':
return StackFit.loose;
case 'expand':
return StackFit.expand;
case 'passthrough':
return StackFit.passthrough;
default:
return StackFit.loose;
}
}