onSetState method

void onSetState(
  1. int? currentRate
)

Implementation

void onSetState(int? currentRate) {
  this.currentRate = currentRate;
  setState(() {});
}