AnimatedStyle class

Inheritance
Available extensions

Constructors

AnimatedStyle(Style style, {required Duration duration, required Curve curve})
factory

Properties

add → SpreadFunctionParams<Attribute, Style>
Allows to create a new Style by using this mix as a base and adding additional attributes.
no setterinherited
animated AnimatedData
final
applyVariant → SpreadFunctionParams<Variant, Style>
Selects a single or positional params list of Variant and returns a new Style with the selected variants.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAnimated bool
no setterinherited
isEmpty bool
Returns true if this Style does not contain any attributes or variants.
no setterinherited
isNotEmpty bool
Returns false if this Style contains any attributes or variants.
no setterinherited
length int
Returns the length of the list of attributes contained in this mix.
no setterinherited
props List<Object?>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
no setterinherited
styles AttributeMap<StyledAttribute>
Visual attributes contained in this mix.
finalinherited
values Iterable<Attribute>
Returns a list of all attributes contained in this mix.
no setterinherited
variants AttributeMap<VariantAttribute<IVariant>>
The variant attributes contained in this mix.
finalinherited

Methods

addAll(Iterable<Attribute> attributes) Style
inherited
animate({Duration? duration, Curve? curve}) AnimatedStyle
Returns a AnimatedStyle from this Style with the provided duration and curve.
inherited
applyVariants(List<Variant> selectedVariants) Style
Selects multiple Variant instances and returns a new Style with the selected variants.
override
box({required Widget child, bool inherit = false, Key? key, Style? style}) Box

Available on Style, provided by the StyleExt extension

call() NestedStyleAttribute
Returns a new NestedStyleAttribute instance that wraps the current Style instance.
inherited
column({required List<Widget> children, bool inherit = false, Key? key, Style? style}) StyledColumn

Available on Style, provided by the StyleExt extension

container({required Widget child, bool inherit = false, Key? key, Style? style}) Box

Available on Style, provided by the StyleExt extension

copyWith({AttributeMap<StyledAttribute>? styles, AttributeMap<VariantAttribute<IVariant>>? variants, AnimatedData? animated}) AnimatedStyle
Returns a new Style with the provided styles and variants merged with this mix's values.
override
getDiff(EqualityMixin other) Map<String, String>
inherited
hbox({required List<Widget> children, bool inherit = false, Key? key, Style? style}) HBox

Available on Style, provided by the StyleExt extension

icon(IconData icon, {bool inherit = false, Key? key, Style? style}) StyledIcon

Available on Style, provided by the StyleExt extension

merge(Style? style) Style
Merges this mix with the provided Style instances and returns the resulting Style.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(BuildContext context) MixData
inherited
pickVariants(List<IVariant> pickedVariants, {bool isRecursive = false}) Style
Picks and applies only the attributes within the specified Variant instances, and returns a new Style.
inherited
row({required List<Widget> children, bool inherit = false, Key? key, Style? style}) StyledRow

Available on Style, provided by the StyleExt extension

text(String text, {bool inherit = false, Key? key, String? semanticsLabel, Style? style}) StyledText

Available on Style, provided by the StyleExt extension

toString() String
A string representation of this object.
inherited
vbox({required List<Widget> children, bool inherit = false, Key? key, Style? style}) VBox

Available on Style, provided by the StyleExt extension

Operators

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