FixedExtentScrollController constructor Null safety

FixedExtentScrollController(
  1. {int initialItem = 0}
)

Creates a scroll controller for scrollables whose items have the same size.

initialItem defaults to 0 and must not be null.

Implementation

FixedExtentScrollController({
  this.initialItem = 0,
}) : assert(initialItem != null);