EntityServices<TEntity> class

Inheritance
Annotations
  • @Deprecated('''This class is being discontinued. The purpose is to refocus this package on the single task of hosting gRPC services instead of including classes to help implement the actual services, especcially classes that are related to data persistency. ''')

Constructors

EntityServices(ServiceCall call, EntityServicesParameters<TEntity> parameters)

Properties

call → ServiceCall
finalinherited
hashCode int
The hash code for this object.
no setterinherited
mapMapper → MapMapper<TEntity>
final
permissions → EntityPermissions
final
principal Principal
finalinherited
repository → Repository<TEntity>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator → Validator
final

Methods

findPage<TPageItem>(SearchCriteria criteria, {required TPageItem mapper(Map<String, dynamic> map)}) Future<PagedSearchResult<TPageItem>>
findToEntityList([SearchCriteria criteria = const SearchCriteria()]) Future<List<TEntity>>
findToEntityPage(SearchCriteria criteria, {TEntity mapper(Map<String, dynamic> map)?}) Future<PagedSearchResult<TEntity>>
findToEntityStream([SearchCriteria criteria = const SearchCriteria()]) Future<Stream<TEntity>>
findToStream([SearchCriteria criteria = const SearchCriteria()]) Future<Stream<Map<String, dynamic>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
throwNotFound() → void
inherited
throwOnError(ErrorList errors) → void
inherited
throwUnauthorized() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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