Variant<T extends Attribute> class Variants

Constructors

Variant(String name, {bool shouldApply(BuildContext)?})

Properties

hashCode int
The hash code for this object.
no setteroverride
inverse bool
getter/setter pair
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldApply → (bool Function(BuildContext)?)
final

Methods

call([T? p1, T? p2, T? p3, T? p4, T? p5, T? p6, T? p7, T? p8, T? p9, T? p10, T? p11, T? p12]) → VariantAttribute<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator &(Variant<T> variant) → MultiVariant<T>
operator ==(Object other) bool
The equality operator.
override
operator |(Variant<T> variant) → MultiVariant<T>