QueryResultBuilder<T>.sync constructor
QueryResultBuilder<T>.sync ({
- Key? key,
- FailedResultBuilder? failedBuilder,
- required ValueResultBuilder<
T> builder, - required QueryResult<
T> result,
Build UI with QueryResult
pendingBuilder
- Builder to be used when PendingResult is given.waitingBuilder
- Builder to be used when WaitingResult is given.failedBuilder
- Builder to be used when FailedResult is given.builder
- Builder to be used when SucceededResult or InitialValueResult is given.
pendingBuilder
, waitingBuilder
, failedBuilder
are optional,
if not given default builder provided by DefaultPendingResultBuilder,
DefaultWaitingResultBuilder, DefaultFailedResultBuilder or global default
builders will be used.
Implementation
QueryResultBuilder.sync({
Key? key,
FailedResultBuilder? failedBuilder,
required ValueResultBuilder<T> builder,
required QueryResult<T> result,
}) : this(
key: key,
failedBuilder: failedBuilder,
builder: builder,
result: AsyncQueryResult<T>.from(result),
);