BackupRepository<T extends Auth<AuthKeys>> class

Constructors

BackupRepository(BackupDataSource<T> source)
const
BackupRepository.create({String key = AuthKeys.key, required BackupReader reader, required BackupWriter writer, BackupDelegate<T>? delegate})
factory

Properties

cache Future<T?>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source BackupDataSource<T>
final

Methods

build(Map<String, dynamic> source) → T
clear() Future<bool>
get([bool remotely = false]) Future<T?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCreateUser(T data) Future<void>
onDeleteUser(String id) Future<void>
onFetchUser(String id) Future<T?>
onUpdateUser(String id, Map<String, dynamic> data) Future<void>
save({required String id, Map<String, dynamic> initials = const {}, Map<String, dynamic> updates = const {}, bool cacheUpdateMode = false}) Future<bool>
set(T? data) Future<bool>
setAsLocal(T? data) Future<bool>
toString() String
A string representation of this object.
inherited
update(Map<String, dynamic> data) Future<bool>

Operators

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