onData method

void onData(
  1. T data
)

Implementation

void onData(T data) {
  _state = StatusData(data);
  notifyListeners();
}