ContextVariantBuilder class final
- Inheritance
-
- Object
- Attribute
- VariantAttribute<
ContextVariant> - ContextVariantBuilder
- Annotations
Constructors
- ContextVariantBuilder(Style fn(BuildContext context), ContextVariant variant)
-
const
Properties
- fn → Style Function(BuildContext context)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mergeKey → Object
-
no setteroverride
- priority → VariantPriority
-
no setterinherited
-
props
→ List<
Object?> -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
no setterinherited
- value → Style
-
no setteroverride
- variant → ContextVariant
-
finalinherited
Methods
-
build(
BuildContext context) → Style -
getDiff(
EqualityMixin other) → Map< String, String> -
inherited
-
matches(
Iterable< IVariant> otherVariants) → bool -
inherited
-
merge(
covariant ContextVariantBuilder? other) → ContextVariantBuilder -
Merges this object with
other
, returning a new object of typeT
.override -
mergeFn(
Style other(BuildContext context)) → Style Function(BuildContext context) -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeVariants(
Iterable< IVariant> variantsToRemove) → VariantAttribute<IVariant> ? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited