BaseState<T> constructor
Implementation
BaseState({@required this.name, @required this.initialState})
: assert(name != null && name.isNotEmpty
? true
: throw 'state name should not be empty or null.'),
assert(initialState != null);