WxSheetStyleResolverData class

Data class representing the context of a sheet style resolver.

Contains information about the sheet's variant, size, severity, and presence of leading, trailing content, and callbacks. Used by WxSheetStyleResolver to determine the appropriate sheet style based on these factors.

Annotations

Constructors

WxSheetStyleResolverData({WxSheetVariant? variant, WxSheetSize? size, Color? severity, bool hasLeading = false, bool hasTrailing = false, bool hasCallback = false})
Creates a WxSheetStyleResolverData instance
const

Properties

effectiveSize → WxSheetSize
Returns the effective size of the sheet, defaulting to WxSheetSize.undefined if not provided.
no setter
effectiveVariant → WxSheetVariant
Returns the effective variant of the sheet, defaulting to WxSheetVariant.undefined if not provided.
no setter
hasCallback → bool
Whether the sheet has callbacks (onPressed or onSelected).
final
hashCode → int
The hash code for this object.
no setterinherited
hasLeading → bool
Whether the sheet has leading content.
final
hasTrailing → bool
Whether the sheet has trailing content.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity → Color?
The severity level of the sheet (optional).
final
size → WxSheetSize?
The size of the sheet.
final
variant → WxSheetVariant?
The variant of the sheet.
final

Methods

copyWith({WxSheetVariant? variant, WxSheetSize? size, Color? severity, bool? hasLeading, bool? hasTrailing, bool? hasCallback}) → WxSheetStyleResolverData
Creates a copy of the data with optional modifications.
merge(WxSheetStyleResolverData? other) → WxSheetStyleResolverData
Merges another WxSheetStyleResolverData into this one.
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