onStateChanged method

dynamic onStateChanged(
  1. S previous,
  2. S current
)

Implementation

onStateChanged(S previous, S current) {}