dispose method Null safety

  1. @override
void dispose()
override

Dispose of any callback listeners

Implementation

@override
void dispose() {
  super.dispose();
  isActiveChanged.removeListener(onActiveChanged);
}