OverflowBar constructor Null safety

OverflowBar(
  1. {Key? key,
  2. double spacing = 0.0,
  3. MainAxisAlignment? alignment,
  4. double overflowSpacing = 0.0,
  5. OverflowBarAlignment overflowAlignment = OverflowBarAlignment.start,
  6. VerticalDirection overflowDirection = VerticalDirection.down,
  7. TextDirection? textDirection,
  8. Clip clipBehavior = Clip.none,
  9. List<Widget> children = const <Widget>[]}
)

Constructs an OverflowBar.

The spacing, overflowSpacing, overflowAlignment, overflowDirection, and clipBehavior parameters must not be null. The children argument must not be null and must not contain any null objects.

Implementation

OverflowBar({
  super.key,
  this.spacing = 0.0,
  this.alignment,
  this.overflowSpacing = 0.0,
  this.overflowAlignment = OverflowBarAlignment.start,
  this.overflowDirection = VerticalDirection.down,
  this.textDirection,
  this.clipBehavior = Clip.none,
  super.children,
}) : assert(spacing != null),
     assert(overflowSpacing != null),
     assert(overflowAlignment != null),
     assert(overflowDirection != null),
     assert(clipBehavior != null);