QueryResultBuilder<T>.sync constructor

QueryResultBuilder<T>.sync({
  1. Key? key,
  2. FailedResultBuilder? failedBuilder,
  3. required ValueResultBuilder<T> builder,
  4. required QueryResult<T> result,
})

Build UI with QueryResult

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