TransientEvent class final

A sharp, instantaneous haptic (tap, click, impact).

Inheritance
Annotations

Constructors

TransientEvent({required double intensity, double sharpness = 0.5, Duration delay = Duration.zero})
const

Properties

delay Duration
Delay from the start of the pattern.
final
hashCode int
The hash code for this object.
no setteroverride
intensity double
Intensity of the haptic. Range: 0.0 to 1.0.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharpness double
Sharpness of the haptic. Range: 0.0 (dull) to 1.0 (sharp).
final

Methods

delayed(Duration offset) TransientEvent
Shift this event forward in time.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scaled(double factor) TransientEvent
Scale the intensity of this event.
override
toMap() Map<String, dynamic>
Convert to native format for method channel.
override
toString() String
A string representation of this object.
inherited

Operators

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