getState<T> method

T getState<T>(
  1. int index
)

if you have multiple objects of save type you can use this final state = states.getState

Implementation

T getState<T>(int index) {
  return _stats[index];
}