send method

  1. @override
Future<bool> send(
  1. List<int> bytes
)
override

Implementation

@override
Future<bool> send(List<int> bytes) async {
  try {
    final connected = await _connect();
    if (!connected) return false;
    Map<String, dynamic> params = {"bytes": bytes};
    return await flutterPrinterChannel.invokeMethod('printBytes', params);
  } catch (e) {
    return false;
  }
}