setSuccess method

void setSuccess(
  1. T data
)

Sets the status to success with the given data.

Implementation

void setSuccess(T data) {
  change(GetStatus<T>.success(data));
}