basestate library Null safety

Classes

BaseLifeCycle
BaseState
This class must be inherited to create a state.
StateHolder<T>