Schema class
Annotation to mark a variable as a Firestore schema definition
Used to identify schema variables that contain multiple @Collection annotations:
@Schema()
@Collection<User>("users")
@Collection<Post>("posts")
final testSchema = _$TestSchema;
This helps the code generator identify which variables represent complete schemas for automatic discovery of nested model types.
- Annotations
-
- @Target.new({TargetKind.topLevelVariable})
- @immutable
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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