DefaultReadUseCase<Domain extends BasicDomainObject<Domain>> class Null safety

Default implementation of CRUDUseCase of type Domain extends BasicDomainObject It's basically a delegate to the repo.

EXAMPLE: This is the implementation of ParentUseCase. See BasicDomainObject for ParentDomain's example code. See ReadUseCase for ParentUseCase's example code.

  class ParentUseCaseImpl extends DefaultReadUseCase<ParentDomain>
    implements ParentUseCase {

    ParentUseCaseImpl(List<ParentDomain> info)
        : super(info: info);

    void doStuffInUseCase(){
       print('Doing Stuff in the use case layer...');
    }
  }
Inheritance

Constructors

DefaultReadUseCase(List<Domain> _info)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

count() int
Count the amount of domains. By default calling the length of findAll().
override
dispose() → void
override
findAll() List<Domain>
Find all domains.
override
findBy(int keyId) → Domain
Find the correspondent domain by it's Key Id.
override
init() → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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