AFCompositeQuery class

Inheritance

Constructors

AFCompositeQuery(AFCompositeQueryResponse queryResponses, {AFID? id, AFOnResponseDelegate<AFCompositeQueryResponse>? onSuccess, AFOnErrorDelegate? onError, int? simulatedLatencyFactor})
AFCompositeQuery.createFrom({required List<AFAsyncQuery> queries, AFOnResponseDelegate<AFCompositeQueryResponse>? onSuccess, AFOnErrorDelegate? onError})
factory

Properties

allQueries → List<AFAsyncQuery>
no setter
conceptualStore ↔ AFConceptualStore
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
id → AFID?
finalinherited
key → String
no setterinherited
lastStart ↔ int?
getter/setter pairinherited
onError → AFOnErrorDelegate?
finalinherited
onPreExecuteResponse → AFPreExecuteResponseDelegate<AFCompositeQueryResponse>?
finalinherited
onSuccess → AFOnResponseDelegate<AFCompositeQueryResponse>?
finalinherited
queryResponses → AFCompositeQueryResponse
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
simulatedLatencyFactor → int?
finalinherited

Methods

createSuccessContextForResponse({required AFDispatcher dispatcher, required AFState state, required AFCompositeQueryResponse response, required bool isPreExecute}) → AFFinishQuerySuccessContext<AFCompositeQueryResponse>
inherited
currentMillis() → int
inherited
findQueryWhere<TQuery extends AFAsyncQuery>(dynamic testQuery(TQuery)) → TQuery?
findQueryWithType<TQuery extends AFAsyncQuery>() → TQuery?
finishAsyncWithError(AFFinishQueryErrorContext context) → void
The default implementation calls the error handler specified in your xxx_define_core.dart file.
inherited
finishAsyncWithErrorAF(AFFinishQueryErrorContext context) → void
inherited
finishAsyncWithResponse(AFFinishQuerySuccessContext<AFCompositeQueryResponse> response) → void
By default, does nothing.
override
finishAsyncWithResponseAF(AFFinishQuerySuccessContext<AFCompositeQueryResponse> context) → void
Called internally by the framework to do pre and post processing before finishAsyncWithResponse
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retargetStore(AFConceptualStore target) → void
inherited
startAsync(AFStartQueryContext<AFCompositeQueryResponse> context) → void
This function will not be called in this variant, so overriding it is useless.
override
startAsyncAF(AFDispatcher dispatcher, AFStore store, {required Completer<AFFinishQuerySuccessContext>? completer, dynamic onResponseExtra(dynamic)?, dynamic onErrorExtra(dynamic)?}) → void
Called internally when redux middleware begins processing a query.
override
testFinishAsyncWithError(AFStateTestContext context, AFQueryError error) → void
Called during testing to simulate results from an asynchronous call.
inherited
testFinishAsyncWithResponse(AFStateTestContext context, AFCompositeQueryResponse response) → void
Called during testing to simulate results from an asynchronous call.
inherited
throwUnimplemented() → Never
A utility for throwing unimplemented in your startAsync method before you have implemented it.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

createList() → List<AFAsyncQuery>

Constants

queryFailedCode → const int
queryFailedMessage → const String