ContinuousEvent class final

A sustained haptic (rumble, vibration) with constant parameters.

Inheritance
Annotations

Constructors

ContinuousEvent({required double intensity, required Duration duration, double sharpness = 0.5, Duration delay = Duration.zero})
Creates a continuous event with constant intensity and sharpness.
ContinuousEvent.curved({required HapticParam intensity, required Duration duration, HapticParam sharpness = const ConstantParam(0.5), Duration delay = Duration.zero})
Creates a continuous event with curved intensity and/or sharpness.
const

Properties

delay Duration
Delay from the start of the pattern.
final
duration Duration
Duration of the continuous haptic.
final
hashCode int
The hash code for this object.
no setteroverride
intensity HapticParam
Intensity parameter (constant or curved).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharpness HapticParam
Sharpness parameter (constant or curved).
final

Methods

delayed(Duration offset) ContinuousEvent
Shift this event forward in time.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scaled(double factor) ContinuousEvent
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