Transition class

Represents the CSS transition property.

Transitions enable you to define the transition between two states of an element. Different states may be defined using pseudo-classes like :hover or :active or dynamically set.

Read more: MDN transition

Constructors

Transition(String property, {required Duration duration, Curve? curve, Duration? delay})
Create a transition for a specific CSS property.
const
factory
Transition.combine(List<Transition> transitions)
Combine multiple transitions into one.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
final

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

inherit → const Transition
initial → const Transition
revert → const Transition
revertLayer → const Transition
unset → const Transition