write method

  1. @Deprecated('Use `BluetoothConnection.output` with some decoding (such as `ascii.decode` for strings) instead')
Future<void> write (
  1. String message
)
@Deprecated('Use `BluetoothConnection.output` with some decoding (such as `ascii.decode` for strings) instead')

Implementation

@Deprecated(
    'Use `BluetoothConnection.output` with some decoding (such as `ascii.decode` for strings) instead')
Future<void> write(String message) {
  _defaultConnection.output.add(utf8.encode(message));
  return _defaultConnection.output.allSent;
}