patternFromWaveForm static method

void patternFromWaveForm(
  1. List<int> timings,
  2. List<int> amplitudes,
  3. bool repeat
)

generate a custom pattern impact vibration from waveform (android only)

Implementation

static void patternFromWaveForm(List<int> timings, List<int> amplitudes, bool repeat) => _channel.invokeMethod(
      'pattern',
      {
        'timings': timings,
        'amplitudes': amplitudes,
        'repeat': repeat,
      },
    );