Time class abstract

A time representation that can be absolute or relative to another element.

Constructors

Time.duration(Duration duration)
A time duration in real time.
const
factory
Time.frames(int frames)
A time duration for a given frames count.
const
factory
Time.relative(double percent)
A time duration in percent (1.0 is equivalent to parent's full duration), relative to the parent duration.
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

Methods

asFrames(int parentDurationInFrames, int fps) int
Converts this time value to a number of frames.
map<T>(T frames(int frames), T relative(double percent), T duration(Duration duration)) → T
Map this value to a value of type T, regarding the current type of time : frames, relative or duration.
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