Function validateSides
-
Parameters
- sides: VisualEdgeSides
The value to validate.
Returns sides is VisualEdgeSides
trueif the value is a validVisualEdgeSidestype otherwisefalse. - sides: VisualEdgeSides
The value to validate.
true if the value is a valid VisualEdgeSides type otherwise false.
Validates a VisualEdgeSides value.
This utility is attached to applyVisualEdgeInsets and can be used to perform lightweight runtime checks before passing values to the action. It performs the same structural checks that the action's internal normalization logic uses.