done method

void done(
  1. T newData
)

Called when data has been successfully loaded.

Internally sets the state to ServiceStatus.loaded and updates the data.

Implementation

void done(T newData) {
  _data = newData;
  _status = ServiceStatus.loaded;
}