loading method

void loading({
  1. dynamic data,
})

Call to change state to Loading

Implementation

void loading({dynamic data}) {
  this.state = State.Loading(data: data);
}