updateSilently method

void updateSilently(
  1. T newState
)

Updates the state without notifying listeners

Implementation

void updateSilently(T newState) {
  _checkDisposed();
  _data = newState;

  assert(() {
    log('''
🤫 ViewModel<${T.toString()}> updated silently
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ID: $_instanceId
New state hash: ${_data.hashCode}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
''', level: 5);
    return true;
  }());
}