flexJustifyFromValue function
Implementation
FlexJustify? flexJustifyFromValue(String? value) {
if (value == null || value.isEmpty) {
return null;
}
switch (value.replaceKey()) {
case 'FLEX_START':
return FlexJustify.flexStart;
case 'CENTER':
return FlexJustify.center;
case 'FLEX_END':
return FlexJustify.flexEnd;
case 'SPACE_BETWEEN':
return FlexJustify.spaceBetween;
case 'SPACE_AROUND':
return FlexJustify.spaceAround;
case 'SPACE_EVENLY':
return FlexJustify.spaceEvenly;
default:
_convertError("flexJustifyFromInt Unknown enum value: $value");
return null;
}
}