DefaultCRUDUseCaseAsync<Domain extends BasicDomainObject<IntIdentifier>> class Null safety

Inheritance

Constructors

DefaultCRUDUseCaseAsync({required CRUDRepositoryAsync<Domain> repo})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
repo CRUDRepositoryAsync<Domain>
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

count() Future<int>
Count the amount of domains. By default calling the length of findAll().
override
create(Domain newObject) Future<Domain>
Create the domain.
override
destroy(Domain objectToDestroy) Future<Domain>
Destroy the domain.
override
dispose() Future<void>
override
edit(Domain objectToEdit) Future<Domain>
Edit the domain.
override
findAll() Future<List<Domain>>
Find all domains.
override
findBy(int keyId) Future<Domain>
Find the correspondent domain by it's Key Id.
override
init() Future<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