QueryResultNotifier<T> constructor Null safety

QueryResultNotifier<T>(
  1. [AsyncQueryResult<T>? initialState]
)

Create new ValueNotifier

Optional initialState can be used to set the initial state of the notifier. PendingResult is used if not specified

Implementation

QueryResultNotifier([AsyncQueryResult<T>? initialState])
    : super(initialState ?? AsyncQueryResult<T>());