IntermittentInputFunction class

This function describes regular intermittent motion.

The angle changes according to the provided input function during each movement interval, then remains constant during each pause interval.

Inheritance

Constructors

IntermittentInputFunction({double initialValue = 0, InputFunction motionFunction = const LinearInputFunction(gradient: 0), Duration movementDuration = const Duration(seconds: 2), Duration pauseDuration = const Duration(seconds: 1), Duration timeOffset = Duration.zero})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
initialValue → double
The initial angle in radians, normalized to 0, 2π.
final
motionFunction → InputFunction
Defaults to LinearInputFunction.
final
movementDuration → Duration
Duration of each movement interval.
final
pauseDuration → Duration
Duration of each pause interval.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
timeOffset → Duration
Duration before the first movement starts.
final

Methods

getCurrentValue({required Duration elapsedTime, double? newInitialValue}) → double
This returns the current value of angle using time passed since the animation started running. It should return a value between 0 and (math.pi * 2), no negative values.
override
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