sendMessage method

Future<void> sendMessage(
  1. Uint8List messageData, {
  2. bool flush = false,
})

Implementation

Future<void> sendMessage(Uint8List messageData, {bool flush = false}) async {
  if (!_adbConnected) {
    throw Exception('Not connected to ADB');
  }
  _socket!.add(messageData);
  if (flush) {
    await _socket!.flush();
  }
}