Built-in conversions for SQL scalar values, JSON, and exact numeric types.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
bigint
→ Codec<
BigInt> -
Arbitrary-precision integers encoded as exact decimal text.
final
-
boolean
→ Codec<
bool> -
Booleans decoded from true/false or integer 1/0; other inputs are rejected.
final
-
bytes
→ Codec<
Uint8List> -
Binary data as Uint8List.
final
-
integer
→ Codec<
int> -
Dart integers; textual database numerics must parse exactly as an integer.
final
-
real
→ Codec<
double> -
Binary floating-point values with explicit SQL real intent on JavaScript.
final
-
text
→ Codec<
String> -
SQL text without implicit string conversion.
final
Static Methods
-
enumeration<
E extends Enum> (Map< E, String> labels) → Codec<E> - Enum storage labels are explicit and independent of declaration ordinals.
Constants
-
date
→ const Codec<
LocalDate> - Calendar dates without timezones.
-
dateTime
→ const Codec<
DateTime> - UTC instants within the common finite PostgreSQL and Dart DateTime range.
-
decimal
→ const Codec<
Decimal> - Exact finite decimals encoded as text without a floating-point conversion.
-
json
→ const Codec<
Object?> - Parsed JSON values; JSON null and SQL NULL both decode to Dart null.
-
jsonDocument
→ const Codec<
SqlJson> - JSON documents wrapped in SqlJson to preserve JSON null.
-
localDateTime
→ const Codec<
LocalDateTime> - Local calendar timestamps with no implied UTC instant.
-
time
→ const Codec<
LocalTime> - Wall-clock times with microsecond resolution, including 24:00.