result property

Future<State> result

Get the result of calling the queryFn.

If result is used when the stream has no listeners result will start the delete timer once complete. For full caching functionality see stream.

Implementation

Future<State> get result {
  _resetDeleteTimer();
  // if there are no other listeners and result has been called schedule
  // a delete.
  if (!(_streamController?.hasListener ?? false) &&
      !(_deleteQueryTimer?.isActive ?? false)) {
    _scheduleDelete();
  }
  return _getResult();
}