dispose method
Copy particular properties from the 'previous' StateX
Implementation
// ignore: unused_element
// void _copyOverStateDependencies([StateX? oldState]) {
// //
// if (oldState == null) {
// return;
// }
// _dependencies.addAll(oldState._dependencies);
// }
@override
void dispose() {
_child = null;
_inheritedElement = null;
_dependencies.clear();
super.dispose();
}