startAllowStateChanges method

bool startAllowStateChanges(
  1. {bool allow = true}
)

Implementation

bool startAllowStateChanges({bool allow = true}) {
  final prevValue = _state.allowStateChanges;
  _state.allowStateChanges = allow;

  return prevValue;
}