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

WidgetValidator()

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
DEBUGGING Get diagnostic information about a widget
isInFlexContext(Widget widget) bool
UTILITY Verify if a widget is in a valid Flex context
isValidForSkeleton(Widget widget) bool
MAIN VALIDATION Verify if a widget is safe for skeleton creation
sanitizeWidget(Widget widget) Widget
SANITIZATION Cleans and prepares a widget for safe conversion to skeleton