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