onClose method

  1. @override
void onClose(
  1. Cubit cubit
)
override

Called whenever a Cubit is closed. onClose is called just before the Cubit is closed and indicates that the particular instance will no longer emit new states.

Implementation

@override
void onClose(Cubit cubit) {
  super.onClose(cubit);
  if (status == RemoteDevToolsStatus.started) {
    _relay('ACTION', cubit, null, 'OnClose');
  }
}