LocalSingleton<T> class

Inheritance

Constructors

LocalSingleton({required String id, DocumentType? documentType, T fromJson(Map<String, dynamic>)?, Map<String, dynamic> toJson(T)?})
Local persistance container for singletons.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete() Future<void>
deleteValue(String fileName) Future<bool>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() Future<T?>
readValue(String fileName) Future<T?>
inherited
toString() String
A string representation of this object.
inherited
write(T toWrite) Future<void>
writeValue(String fileName, T toWrite) Future<void>
inherited

Operators

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