flexDirectionFromValue function
Implementation
FlexDirection? flexDirectionFromValue(String? value) {
if (value == null || value.isEmpty) {
return null;
}
switch (value.replaceKey()) {
case 'INHERIT':
return FlexDirection.inherit;
case 'LTR':
return FlexDirection.ltr;
case 'RTL':
return FlexDirection.rtl;
default:
_convertError("flexDirectionFromInt Unknown enum value: $value");
return null;
}
}