Local constructor

const Local({
  1. required int version,
  2. String? tableName,
  3. dynamic entity,
  4. String? query,
  5. Execute execute = Execute.QUERY,
  6. DataType dataType = DataType.IMPLICIT,
  7. OnConflictStrategy onConflict = OnConflictStrategy.abort,
})

Implementation

const Local({
  required this.version,
  // using only dataType = DataType.IMPLICIT.
  this.tableName,
  this.entity,
  this.query,
  this.execute = Execute.QUERY,
  this.dataType = DataType.IMPLICIT,
  // using only execute = Execute.INSERT, Execute.UPDATE
  this.onConflict = OnConflictStrategy.abort,
});