dataOrThrow property
T
get
dataOrThrow
Returns data or throws if null.
Implementation
T get dataOrThrow {
if (data == null) throw StateError('ApiResponse.data is null');
return data as T;
}
Returns data or throws if null.
T get dataOrThrow {
if (data == null) throw StateError('ApiResponse.data is null');
return data as T;
}