StateContainer constructor
const
StateContainer({
- required dynamic state,
- required List<
StateDefinition?> states, - Duration animationDuration = const Duration(milliseconds: 300),
- StateAnimationType animationType = StateAnimationType.FADE,
- Color? transitionColor = Colors.transparent,
- Key? key,
Implementation
const StateContainer({
required this.state,
required this.states,
this.animationDuration = const Duration(milliseconds: 300),
this.animationType = StateAnimationType.FADE,
this.transitionColor = Colors.transparent,
Key? key,
}) : assert(state != null),
super(key: key);