readNullable<T extends Object> method

T? readNullable<T extends Object>(
  1. String key
)

Reads a nullable value from this row.

Just like for the non-nullable read, the type T must be supported by drift (e.g. booleans, strings, numbers, dates, Uint8Lists).

Implementation

T? readNullable<T extends Object>(String key) {
  return readNullableWithType(
    BuiltinSqlType.forType<T>()!.resolveIn(_db.dialect),
    key,
  );
}