LooseDocument class

The annotation to convert a Dart class into a Firebase document.

name: rename the Firestore document to correspond with a database table name. useCase: automatically convert the table name and field names to another case, unless the field is annotated explicitly with a 'name' parameter. readOnly: Throws a LooseException if tried to write to the database.

Constructors

LooseDocument({Case useCase = Case.none, NullMode readMode = NullMode.useDefaultValues, NullMode saveMode = NullMode.useDefaultValues, bool suppressWarnings = false})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
readMode NullMode
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveMode NullMode
final
suppressWarnings bool
final
useCase Case
final

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