asSuccess property
Success<Key, Value>
asSuccess
Returns the PagedValue as Success
.
Implementation
Success<Key, Value> get asSuccess {
assert(
isSuccess,
'Cannot get asSuccess if the PagedValue is not in the Success state',
);
return this as Success<Key, Value>;
}