param method

String param(
  1. Object? value
)

Records value as the next bind parameter and returns its placeholder in the dialect's syntax, keeping values and the emitted SQL in sync.

Implementation

String param(Object? value) {
  final placeholder = dialect.escapeParam(values.length);
  values.add(value);
  return placeholder;
}