unsubscribeToStateChanges method

dynamic unsubscribeToStateChanges (
  1. SubscriptionFunction fn
)

It is recommended to unsubscribe the callback functions after the component has been unmounted.

Implementation

unsubscribeToStateChanges(SubscriptionFunction fn) {
  this.stateChanges.unsubscribe(fn);
}