error property
NetworkException?
get
error
Retrieves the error if the request failed, otherwise null.
Implementation
NetworkException? get error =>
(this is NetworkError<T>) ? (this as NetworkError<T>).error : null;