Switcher.horizontal constructor

const Switcher.horizontal({
  1. Key? key,
  2. required List<Widget> children,
  3. int scrollDelta = _kScrollDelta,
  4. Duration delayedDuration = _kDelayedDuration,
  5. Curve curve = Curves.linear,
  6. Widget? placeholder,
  7. double spacing = 10,
})

Implementation

const Switcher.horizontal({
  Key? key,
  required this.children,
  this.scrollDelta = _kScrollDelta,
  this.delayedDuration = _kDelayedDuration,
  this.curve = Curves.linear,
  this.placeholder,
  this.spacing = 10,
})  : assert(scrollDelta != null &&
          scrollDelta > 0 &&
          scrollDelta <= _kMaxScrollDelta),
      assert(delayedDuration != null),
      assert(curve != null),
      assert(spacing != null && spacing >= 0 && spacing < double.infinity),
      _scrollDirection = Axis.horizontal,
      super(key: key);