VariantStyle<S extends Spec<S> > class
final
Variant wrapper for conditional styling
Constructors
-
VariantStyle(Variant variant, Style<
S> style) -
const
Properties
- hashCode → int
-
Overrides the hash code getter to compute hash code based on properties.
no setterinherited
- mergeKey → Object
-
Opaque semantic identity used when merging variant style fragments.
no setteroverride
-
props
→ List<
Object?> -
The properties based on which equality and hash code are computed.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
Whether to use a detailed string representation of the object.
no setterinherited
-
value
→ Style<
S> -
no setter
- variant → Variant
-
final
Methods
-
getDiff(
Equatable other) → Map< String, String> -
Returns a map of properties that differ between this object and another.
inherited
-
matches(
Iterable< Variant> otherVariants) → bool -
merge(
covariant VariantStyle< S> ? other) → VariantStyle<S> -
Merges this instance with
other, withothertaking precedence.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeVariants(
Iterable< Variant> variantsToRemove) → VariantStyle<S> ? -
toString(
) → String -
Overrides string representation for debugging and logging.
inherited
Operators
-
operator ==(
Object other) → bool -
Overrides the equality operator to compare based on the properties.
inherited