@override Future<int?> writeAudioBuffer(Uint8List buffer) async { final result = await methodChannel .invokeMethod<int>('writeAudioBuffer', {"buffer": buffer}); return result; }