FVariant class sealed

Represents a condition under which a widget can be styled differently.

Each variant has a tier that determines its specificity. Higher tiers take precedence over lower tiers. Tiers typically follow: platform (tier 0) < interaction (tier 1) < semantic (tier 2).

Unlike WidgetState, it is extended by widget-specific variants, allowing widgets to define their own states.

Implemented types
Implementers

Constructors

FVariant(int priority, String value)
Creates a variant.
const
factory

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
satisfiedBy(Set<FVariant> variants) bool
Returns true if all variants in this constraint are present in variants.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited