BaseService<T> class

Available Extensions
Annotations
  • @CopyWith()

Constructors

BaseService({required DbAdapter<T> adapter})

Properties

adapter DbAdapter<T>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T>(JsonObject dto, {bool forceRemoteTrans = false}) Future<Result<T>>
addById<T>(String id, JsonObject dto) Future<Result<T>>
deleteById(IDs ids) Future<Result>
get<T>(IDs ids) Future<Result<T>>
getAll<T>({dynamic field, dynamic isEqualTo, dynamic isLessThan, dynamic isLessThanOrEqualTo, dynamic isGreaterThan, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, List? arrayContainsAny, List? whereIn, bool? isNull, int limit = 10}) Future<Result<List<T>>>
getOffline<T>(IDs ids) Future<Result<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offline() BaseService<T>
toString() String
A string representation of this object.
inherited
update<T>(JsonObject<T> dto) Future<Result<T>>

Operators

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