write method

Future<WroteReporter> write({
  1. WriteOptions? options,
})

Implementation

Future<WroteReporter> write({WriteOptions? options}) async {
  var connectedDevice = this.connectedDevice();
  options = options ?? WriteOptions.def();
  var command = this.command();
  var binary = command.binary();
  var operation = DataWriteOperation(
      connectedDevice: connectedDevice, options: options, binary: binary);
  var reporter = await operation.write();
  clear();
  return reporter;
}