StateContainer constructor

const StateContainer({
  1. required dynamic state,
  2. required List<StateDefinition?> states,
  3. Duration animationDuration = const Duration(milliseconds: 300),
  4. StateAnimationType animationType = StateAnimationType.FADE,
  5. Color? transitionColor = Colors.transparent,
  6. 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);