attach method

void attach(
  1. T state
)

Implementation

void attach(T state) {
  // print('hi attach self=$hashCode _states=${_states.map((s) => s.hashCode).toList()} state=${state.hashCode}');
  assert(!_states.contains(state),
      'want to attach() but it already exists _states=${_states.map((s) => s.hashCode).toList()} state=${state.hashCode}');
  _states.add(state);
}