flexCssDirectionFromValue function
Implementation
FlexCSSDirection? flexCssDirectionFromValue(String? value) {
if (value == null || value.isEmpty) {
return null;
}
switch (value.replaceKey()) {
case 'ROW':
return FlexCSSDirection.row;
case 'ROW_REVERSE':
return FlexCSSDirection.rowReverse;
case 'COLUMN':
return FlexCSSDirection.column;
case 'COLUMN_REVERSE':
return FlexCSSDirection.columnReverse;
default:
_convertError("flexCssDirectionFromInt Unknown enum value: $value");
return null;
}
}