patternFromData static method

void patternFromData(
  1. String data
)

generate a custom pattern impact vibration

Implementation

static void patternFromData(String data) => Platform.isAndroid
    ? _patternFromAhapToWaveform(data)
    : _channel.invokeMethod(
        'pattern',
        {
          'data': data,
        },
      );