WriteService constructor

WriteService(
  1. InfluxDBClient client, {
  2. WriteOptions? writeOptions,
})

Creates WriteApi with optional custom writeOptions

Implementation

WriteService(InfluxDBClient client, {WriteOptions? writeOptions})
    : super(client) {
  this.writeOptions = writeOptions ?? WriteOptions();
  _writeBatch = _WriteBatch(this.writeOptions, this);
}