GradientAnimation enum

Defines the options for a variety of transformations to apply to a Gradient in the process of making it an AnimatedGradient.

These GradientAnimation choices are mapped to an appropriate value to describe how the gradient will be modified.

colorArithmetic maps to a ColorArithmetic function and stopsArithmetic maps to a StopsArithmetic function.

tweenSpec maps not to a function, but to a Map<GradientProperty, Tween<dynamic>> that describes an embarrassment of riches for GradientProperty tweening.

Inheritance

Constructors

GradientAnimation()
const

Values

colorArithmetic → const GradientAnimation

GradientAnimation.colorArithmetic implies a ColorArithmetic will be mapped.

stopsArithmetic → const GradientAnimation

GradientAnimation.stopsArithmetic implies a StopsArithmetic will be mapped.

tweenSpec → const GradientAnimation

GradientAnimation.tweenSpec implies a Map<GradientProperty, Tween<dynamic>> will be mapped.

none → const GradientAnimation

GradientAnimation.none implies no animation should occur.

Mapping this value to any other value (such as {GradientAnimation.none: null}) within an AnimatedGradient.storyboard will disable all animation transformations.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<GradientAnimation>
A constant List of the values in this enum, in order of their declaration.