Switcher.horizontal constructor
const
Switcher.horizontal({})
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);