data property
T
get
data
Unwraps the value; throws StateError if this is a Failure.
Implementation
T get data => switch (this) {
Success<T>(data: final v) => v,
Failure<T>() => throw StateError('Called data on a Failure result: $this'),
};