KoozaDocument<T extends Object?> class

Constructors

KoozaDocument.fromDynamicData(KoozaDocument? doc)
factory
KoozaDocument.fromMap(dynamic map)
factory
KoozaDocument.init({String? id, T? data, DateTime? creationDate, Duration? ttl})
factory

Properties

creationDate DateTime
The date that this document was created
final
data → T?
Contains all the data of this document snapshot. If the document does not exist, the returned data will be null.
final
exists bool
returns true if the document exists
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
This document's given ID for this document.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ttl Duration?
The assigned duration is how long the data will be stored kooza.
final

Methods

copyWith({String? id, T? data, DateTime? creationDate, Duration? ttl}) KoozaDocument<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited