integer property

Codec<int> integer
final

Dart integers; textual database numerics must parse exactly as an integer.

Implementation

// PostgreSQL SUM(BIGINT) returns NUMERIC text. Parse exactly and reject
// overflow instead of rounding through double.
static final integer = Codec<int>(
  'integer',
  (v) => v is int ? v : int.parse(v as String),
  (v) => v,
);