SearchResult.fromError constructor

SearchResult.fromError({
  1. String lastError = '',
  2. ErrorType lastErrorType = ErrorType.none,
})

Implementation

SearchResult.fromError({
  this.lastError = '',
  this.lastErrorType = ErrorType.none,
})  : successful = false,
      resultCount = 0,
      processedTime = DateTime.now(),
      items = [];