decodeStackFit function
Implementation
StackFit decodeStackFit(String name) {
switch (name) {
case 'expand':
return StackFit.expand;
case 'passthrough':
return StackFit.passthrough;
case 'loose':
default:
return StackFit.loose;
}
}