cachedCall method

List<T?>? cachedCall([
  1. List<T>? dataList
])

Implementation

List<T?>? cachedCall([List<T>? dataList]) {
  if (_lastResponse != null &&
      !_lastResponse!.isExpired(_cacheTimeout.inMilliseconds)) {
    var same = _lastResponse!.isSameCall(operation, parameters, dataList);
    if (same) {
      return deepCopy<List<T?>>(_lastResponse!.result as List<T?>?);
    }
  }
  return null;
}