UseCaseFake<S extends SuccessDomainInput> class
- Inheritance
-
- Implemented types
-
Properties
-
debugEntity
→ EntityFake
-
A development-only way to access
entity
outside of UseCase
.
no setterinherited
-
debugState
→ EntityFake
-
A development-only way to access
state
outside of StateNotifier
.
no setterinherited
-
domainModel
→ DomainModel?
-
final
-
entity
↔ EntityFake
-
The current entity instance of this
UseCase
.
getter/setter pairinherited-setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasListeners
→ bool
-
If a listener has been added using
addListener
and hasn't been removed yet.
no setterinherited
-
mounted
→ bool
-
Whether
dispose
was called or not.
no setterinherited
-
onError
↔ ErrorListener?
-
A callback for error reporting if one of the listeners added with
addListener
throws.
getter/setter pairinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
↔ EntityFake
-
The current "state" of this
StateNotifier
.
getter/setter pairinherited
-
stream
→ Stream<EntityFake>
-
A broadcast stream representation of a
StateNotifier
.
no setterinherited
-
subscription
↔ RequestSubscription<DomainModel, DomainInput>
-
getter/setter pair
-
successInput
↔ S?
-
getter/setter pair
Methods
-
addListener(Listener<EntityFake> listener, {bool fireImmediately = true})
→ RemoveListener
-
Subscribes to this object.
inherited
-
clearDebounce()
→ void
-
inherited
-
debounce({required void action(), required String tag, Duration duration = const Duration(milliseconds: 300), bool immediate = true})
→ void
-
Executes the
action
so that it will only be executed
when there is no further repeated actions with same tag
in a given frame of duration
.
inherited
-
debugEntityUpdate(EntityFake update(EntityFake))
→ EntityFake
-
A development-only way to update
entity
outside of UseCase
.
inherited
-
dispose()
→ void
-
Frees all the resources associated with this object.
inherited
-
doFakeRequest<M extends DomainModel>(M domainModel)
→ Future<void>
-
-
getDomainModel<M extends DomainModel>()
→ M
-
inherited
-
getInput<S extends SuccessDomainInput>(DomainModel domainModel)
→ Future<UseCaseInput<S>>
-
inherited
-
getInternalInput<S extends SuccessDomainInput>(DomainModel domainModel)
→ FutureOr<Either<FailureDomainInput, S>>
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
request<I extends SuccessDomainInput>(DomainModel domainModel, {required InputCallback<EntityFake, I> onSuccess, required InputCallback<EntityFake, FailureDomainInput> onFailure})
→ Future<void>
-
-
setInput<T extends DomainInput>(T input)
→ void
-
-
subscribe<M extends DomainModel, I extends DomainInput>(RequestSubscription<M, I> subscription)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
transformToDomainModel<M extends DomainModel>(EntityFake entity)
→ M
-
inherited
-
updateShouldNotify(EntityFake old, EntityFake current)
→ bool
-
Whether to notify listeners or not when state changes
inherited
-
withSilencedUpdate(FutureOr<void> updater())
→ Future<void>
-
The
entity
updates within the updater
will not be notified to the
UseCase
listeners, but will silently update it.
inherited