data property

T? get data

Gets the data associated with the status if it is a success status.

Implementation

T? get data {
  if (this is SuccessStatus<T>) {
    final SuccessStatus<T> success = this as SuccessStatus<T>;
    return success.data;
  }
  return null;
}