set method

Future<void> set(
  1. double amplitude,
  2. double frequency
)

Set continuous haptic parameters. Starts automatically if not already active. amplitude and frequency are in the range 0.0–1.0.

Implementation

Future<void> set(double amplitude, double frequency) => PulsarPlatform
    .instance
    .realtimeSet(amplitude, frequency, strategy: strategy);