onAccountChanged method

Future<void> onAccountChanged(
  1. KeyPairData account
)

This method will be called while App user changes account. In this method, the plugin should do:

  1. update balance subscription to update balancesStore.
  2. update other user state of plugin if needed.

Implementation

Future<void> onAccountChanged(KeyPairData account) async => null;