freeze method
Function used to freeze state.
When this function is called, the state of the desired object is paused, and so state changes are no longer implemented until state is unfrozen via the unfreeze function.
Implementation
@override
void freeze() {
_valueController.stream.listen((event) {}).pause();
_freeze = true;
}