MixData class

This class is used for encapsulating all MixData related operations. It contains a mixture of properties and methods useful for handling different attributes, decorators and token resolvers.

Annotations

Constructors

MixData.create(BuildContext context, Style style)
factory

Properties

animation AnimatedData?
final
attributes AttributeMap<Attribute>
Getter for _attributes.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAnimated bool
Alias for animation.isAnimated
no setter
props List<Object?>
Used for Comparable mixin.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
no setterinherited
tokens MixTokenResolver
Getter for MixTokenResolver.
no setter

Methods

attributeOf<A extends StyleAttribute>() → A?
Finds and returns an VisualAttribute of type A, or null if not found.
contains<T>() bool
copyWith({AttributeMap<Attribute>? attributes, AnimatedData? animation, MixTokenResolver? resolver}) MixData
getDiff(Comparable other) Map<String, String>
inherited
merge(MixData other) MixData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolvableOf<Value, A extends SpecAttribute<Value>>() → Value?
toInheritable() MixData
toString() String
A string representation of this object.
inherited
whereType<A extends StyleAttribute>() Iterable<A>

Operators

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