IVariant class abstract

Implementers
Annotations

Constructors

IVariant()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
mergeKey Object
This key determines how variants should be merged. For the most part, it's basically the runtimeType. However, for some context variants and multivariants, it is different as they can have different merge rules.
no setter
priority VariantPriority
This is the priority at which the variants are applied. In the case of some context variants that are due to widget interactivity, they should be applied at a higher priority than media query variants, for example.
no setter
props List<Object?>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
no setterinherited

Methods

getDiff(Comparable other) Map<String, String>
inherited
matches(Iterable<IVariant> matchVariants) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when(BuildContext context) bool

Operators

operator &(covariant IVariant variant) MultiVariant
operator ==(Object other) bool
The equality operator.
inherited
operator |(covariant IVariant variant) MultiVariant