TransitionOptions class Null safety

The transition options controls timing for the interpolation between a transitionable style property's previous value and new value. These can be used to define the style default property transition behavior. Also, any transitionable style property may also have its own -transition property that defines specific transition timing for that specific layer property, overriding the global transition values.

Constructors

TransitionOptions({int? duration, int? delay, bool? enablePlacementTransitions})

Properties

delay int?
Length of time before a transition begins. Units in milliseconds. Defaults to 0.0.
read / write
duration int?
Time allotted for transitions to complete. Units in milliseconds. Defaults to 300.0.
read / write
enablePlacementTransitions bool?
Whether the fade in/out symbol placement transition is enabled. Defaults to true.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Static Methods

decode(Object message) TransitionOptions