freeze method

  1. @override
void freeze()
override

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() => _changeable = false;