DBModelI class abstract

Interface that will provide basic functionality for a DBModel that is used to store a document in Firestore.

When using this with built_value package make sure to implement only id in the abstract class

abstract class HealthForm
    implements DBModelI, Built<HealthForm, HealthFormBuilder> {

  // other attributes
  String get id => ref.documentID;

  HealthForm._();

  factory HealthForm([void Function(HealthFormBuilder) updates])
    = _$HealthForm;
}
Implementers

Constructors

DBModelI()

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
Generate a id for the interface DBModelI
no setter
ref → DocumentReference<Object?>?
Store the DocumentReference of the document
no setter
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