BaseController<T> class

Available Extensions
Annotations
  • @CopyWith()

Constructors

BaseController({required BaseService<T> service})

Properties

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

Methods

add<T>(JsonObject dto, {dynamic forceRemoteTrans = false}) Future<Result<T>>
addById<T>(String id, JsonObject<T> dto) Future<Result<T>>
deleteById(IDs ids) Future<Result>
get<T>(IDs ids) Future<Result<T>>
getAll<T>({bool storeBusinessSpecific = true, dynamic field, dynamic isEqualTo, dynamic isLessThan, dynamic isLessThanOrEqualTo, dynamic isGreaterThan, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, List? arrayContainsAny, List? whereIn, bool? isNull, int limit = 1000}) 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() BaseController<T>
toString() String
A string representation of this object.
inherited
tryCatch<E>(Function f) Future<Result<E>>
update<T>(JsonObject<T> dto) Future<Result<T>>
write<T>(JsonObject<T> dto) Future<Result<T>>

Operators

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