DbRecord<T> constructor

DbRecord<T>(
  1. String key,
  2. T value
)

Default constructor

Implementation

DbRecord(this.key, this.value) {
  if (!(value is T)) {
    throw ArgumentError("Provide a value of type $T for record $key");
  }
}