QueryResultBuilder<T> constructor
QueryResultBuilder<T> ({
- Key? key,
- WidgetBuilder? pendingBuilder,
- WidgetBuilder? waitingBuilder,
- FailedResultBuilder? failedBuilder,
- required ValueResultBuilder<
T> builder, - required AsyncQueryResult<
T> result,
Build UI with AsyncQueryResult
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.
To consume QueryResult, use QueryResultBuilder.sync instead.
Implementation
QueryResultBuilder({
Key? key,
WidgetBuilder? pendingBuilder,
WidgetBuilder? waitingBuilder,
FailedResultBuilder? failedBuilder,
required this.builder,
required AsyncQueryResult<T> result,
}) : super(
key: key,
pendingBuilder: pendingBuilder,
waitingBuilder: waitingBuilder,
failedBuilder: failedBuilder,
result: result,
);