IContactService class abstract

Inheritance

Constructors

IContactService(Repository<ISunnyContact> repository, MSchemaRef type, IAuthState loginState)

Properties

changes Stream<MapDiffs<MKey?, Record<ISunnyContact>>>
no setterinherited
clearOnLogout bool
no setterinherited
entryStream → ValueStream<Map<MKey?, Record<ISunnyContact>>>
no setterinherited
equality → DiffEquality
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isDisabled bool
Allows to temporarily disable, for example until the user logs in
getter/setter pairinherited
isLoading bool
no setterinherited
isUserStore bool
Whether or not this store requires user credentials to operate
no setterinherited
listOnLogin bool
no setterinherited
log → Logger
no setterinherited
loggerName String
no setterinherited
name String
no setterinherited
nextReload Future<List<Record<ISunnyContact>>>
no setterinherited
repository → Repository<ISunnyContact>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type → MSchemaRef
Name of the store
finalinherited
values List<Record<ISunnyContact>>
no setterinherited
valuesStream Stream<List<Record<ISunnyContact>>>
no setterinherited

Methods

afterCreate(ISunnyContact saved) FutureOr
Runs only after creation
inherited
afterDelete(MKey? id) FutureOr
inherited
afterSave(ISunnyContact saved) FutureOr
Runs after update or creation
inherited
afterUpdate(ISunnyContact saved) FutureOr
Runs only on update
inherited
applyChanges<R>(FutureOr<R> build(MapDiffs<MKey, Record<ISunnyContact>> changes), {Map<MKey, Record<ISunnyContact>>? replacement}) FutureOr<R>
inherited
beforeDelete(ISunnyContact toDelete) FutureOr
inherited
beforeSave(ISunnyContact toSave) FutureOr
inherited
checked<R>(R fn()) FutureOr<R>
Executes a function if the full data set is loaded, otherwise, returns a future
inherited
clear() Future
inherited
containsKey(MKey key) bool
inherited
create(ISunnyContact input) Future<ISunnyContact>
inherited
createFromIdentity(IContactIdentity identity) Future<ISunnyContact>
createWith(FutureOr modification(ISunnyContact input)) Future<ISunnyContact>
inherited
delete(ISunnyContact input) Future<bool>
inherited
dispose() Future
inherited
doShutdown() Future
inherited
exec<R>(R block()) → R?
inherited
exists(MKey key) FutureOr<bool>
Whether the record exists = makes sure the data set is loaded first.
inherited
fetchAll({double? offset, double? limit}) Future<List<Record<ISunnyContact>>>
inherited
get(MKey? key, [ISunnyContact? value]) → Record<ISunnyContact>
Returns the value associated with a key in a map -- this entity is designed to track any changes to the key from which it originated.
inherited
getContactables(ISunnyContact iContact) Iterable<Contactable>
getOrPut(MKey id, [ISunnyContact? value]) → Record<ISunnyContact>
inherited
isShuttingDown() bool
inherited
list({bool? forceRefresh, double? offset, double? limit}) FutureOr<List<Record<ISunnyContact>>>
Lists the available data for this store. If subsequent calls are made, they will resolve to the same future.
inherited
load(MKey key) FutureOr<ISunnyContact?>
override
markContactFavorite(MKey mkey) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLogin(AsyncOrCallback onLogin) → void
inherited
onLogout(AsyncOrCallback onLogout) → void
inherited
onReload({bool includeCurrentState = true}) Stream<List<Record<ISunnyContact>>>
inherited
onShutdown(_AsyncCallback callback) → void
inherited
onStartup(_AsyncCallback callback) → void
inherited
put(MKey id, void modification(ISunnyContact _in), {bool ignoreNotLoaded = false}) FutureOr<ISunnyContact?>
Updates the internal map without triggering any persistence. It's possible that other entities that are observing this store will update.
inherited
putRecord(MKey id, ISunnyContact data) → void
inherited
registerDisposer(FutureOr dispose()) → void
inherited
registerLoginHooks(IAuthState state) → void
inherited
reload(MKey id) Future<ISunnyContact?>
inherited
removeDisposer(FutureOr dispose()) → void
inherited
removeRecord(MKey id) → void
inherited
resetCompleteFlag() → void
inherited
save(ISunnyContact input) Future<ISunnyContact>
inherited
saveAll(Iterable<MKey> keys, FutureOr modification(MKey key, ISunnyContact input)) Future
inherited
saveWith(MKey? key, FutureOr modification(ISunnyContact input)) Future<ISunnyContact>
inherited
takeFrom(ISunnyContact _source, ISunnyContact _target) → void
inherited
toString() String
A string representation of this object.
inherited
updateAllItems(Iterable<ISunnyContact> data) Future
inherited

Operators

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