setAttribute method

void setAttribute(
  1. String column,
  2. Object? value
)
inherited

Upserts an attribute value.

Implementation

void setAttribute(String column, Object? value) {
  final mutator = _mutatorFor(column);
  final nextValue = mutator == null
      ? value
      : mutator(this as OrmEntity, value);
  _ensureAttributes()[column] = nextValue;
}