readNullable<T extends Object> method Null safety

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).


T? readNullable<T extends Object>(String key) {
  final type = DriftSqlType.forType<T>();
  return, data[key]);