FixedExtentScrollController constructor Null safety
- {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);