BaseState<T> constructor

BaseState<T>(
  1. {String name,
  2. T initialState}
)

Implementation

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