patternFromData static method
generate a custom pattern impact vibration
Implementation
static void patternFromData(String data) => Platform.isAndroid
? _patternFromAhapToWaveform(data)
: _channel.invokeMethod(
'pattern',
{
'data': data,
},
);