SharedPreferenceEngine<TEntity extends IEntity, TMeta extends EntityMeta<TEntity>> class
Properties
-
dbContext
→ BaseContext<IEntity>
-
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
mType
→ TEntity
-
finalinherited
-
prefs
→ Future<SharedPreferences>
-
final
-
props
→ List<Object?>
-
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
stringify
→ bool?
-
If set to
true
, the toString
method will be overridden to output
this instance's props
.
no setterinherited
-
t
→ TMeta
-
no setterinherited
-
useIsolateDefault
→ bool
-
finalinherited
Methods
-
asCast<T>(dynamic value)
→ T
-
inherited
-
delete({Filter where(TMeta t)?, bool? useIsolate, bool? all})
→ Future<int>
-
-
deletePref({required String key})
→ Future<void>
-
-
firstWhereOrNull({Iterable<ColumnDefinition<IEntity, dynamic>>? columns(TMeta t)?, List<OrmOrder>? orderBy(TMeta t)?, required Filter where(TMeta t), int? offset, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<TEntity?>
-
-
firstWhereOrNullMap({Iterable<ColumnDefinition<IEntity, dynamic>>? columns(TMeta t)?, List<OrmOrder>? orderBy(TMeta t)?, required Filter where(TMeta t), int? offset, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<Map<String, dynamic>?>
-
inherited
-
getCount({Filter where(TMeta t)?, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<int>
-
inherited
-
getItems()
→ Future<Map<String, dynamic>?>
-
-
getSum<T>({required ColumnDefinition<IEntity, dynamic> column(TMeta t), Filter where(TMeta t)?, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<T>
-
inherited
-
getSumProduct<T>({required Iterable<ColumnDefinition<IEntity, dynamic>> columns(TMeta t), Filter where(TMeta t)?, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<T>
-
inherited
-
insert(TEntity item, {bool? useIsolate})
→ Future<TEntity?>
-
-
insertList(Iterable<TEntity> items, {bool? useIsolate})
→ Future<List<TEntity>?>
-
-
insertOrUpdate(TEntity item, {bool? useIsolate})
→ Future<TEntity?>
-
-
insertOrUpdateList(Iterable<TEntity> items, {bool? useIsolate})
→ Future<List<TEntity>?>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
parseInt(Object? object)
→ int?
-
inherited
-
query({Filter where(TMeta t)?, Iterable<ColumnDefinition<IEntity, dynamic>>? columns(TMeta t)?, List<OrmOrder>? orderBy(TMeta t)?, int? limit, int? offset, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<List<TEntity>>
-
-
queryMap({Filter where(TMeta t)?, Iterable<ColumnDefinition<IEntity, dynamic>>? columns(TMeta t)?, List<OrmOrder>? orderBy(TMeta t)?, int? limit, int? offset, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<List<Map<String, dynamic>>>
-
inherited
-
rawQuery(Filter where(TMeta t)?, String query, {bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<List<Map<String, Object?>>>
-
-
read({required String key})
→ Future<Map<String, dynamic>?>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
update({required Filter where(TMeta t), TEntity? entity, Map<ColumnDefinition<IEntity, dynamic>, dynamic> columnValues(TMeta t)?, bool? useIsolate})
→ Future<int>
-
-
where({Iterable<ColumnDefinition<IEntity, dynamic>>? columns(TMeta t)?, List<OrmOrder>? orderBy(TMeta t)?, Filter filter(TMeta t)?, int? limit, int? offset, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<List<TEntity>>
-
inherited
-
whereMap({Iterable<ColumnDefinition<IEntity, dynamic>>? columns(TMeta t)?, List<OrmOrder>? orderBy(TMeta t)?, Filter filter(TMeta t)?, int? limit, int? offset, bool? useIsolate, Map<String, dynamic>? isolateArgs, void onIsolatePreMap(Map<String, dynamic>? isolateArgs)?})
→ Future<List<Map<String, dynamic>>>
-
inherited
-
whereString(Filter filter(TMeta t), bool? useIsolate)
→ Future<FormattedQuery>
-
inherited
-
write({required String key, required Map<String, dynamic> value, Map<String, dynamic>? additionalData})
→ Future<void>
-