WidgetValidator class
WidgetValidator Utility to validate and sanitize widgets before converting them to skeletons. Prevents common errors such as infinite dimensions, overflow, and problematic configurations that can cause rendering exceptions.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getDiagnosticInfo(
Widget widget) → String -
DEBUGGINGGet diagnostic information about a widget -
isInFlexContext(
Widget widget) → bool -
UTILITYVerify if a widget is in a valid Flex context -
isValidForSkeleton(
Widget widget) → bool -
MAIN VALIDATIONVerify if a widget is safe for skeleton creation -
sanitizeWidget(
Widget widget) → Widget -
SANITIZATIONCleans and prepares a widget for safe conversion to skeleton