QueryResultBuilder<T> constructor

QueryResultBuilder<T>({
  1. Key? key,
  2. WidgetBuilder? pendingBuilder,
  3. WidgetBuilder? waitingBuilder,
  4. FailedResultBuilder? failedBuilder,
  5. required ValueResultBuilder<T> builder,
  6. required AsyncQueryResult<T> result,
})

Build UI with AsyncQueryResult

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,
      );