requestMtu method
Implementation
@override
Future<int> requestMtu(int mtu) async {
assert(
mtu >= FlutterSimpleBluetoothPrinter.minAndroidMTU && mtu <= FlutterSimpleBluetoothPrinter.maxAndroidMTU,
"MTU must be between ${FlutterSimpleBluetoothPrinter.minAndroidMTU} and ${FlutterSimpleBluetoothPrinter.maxAndroidMTU}",
);
final newMtu = await methodChannel.invokeMethod("requestMtu", {"mtu": mtu}).recoverBTException();
return newMtu as int? ?? 0;
}