NestedScrollViewViewport constructor
NestedScrollViewViewport({
- Key? key,
- AxisDirection axisDirection = AxisDirection.down,
- AxisDirection? crossAxisDirection,
- double anchor = 0.0,
- required ViewportOffset offset,
- Key? center,
- List<
Widget> slivers = const <Widget>[], - required SliverOverlapAbsorberHandle handle,
- Clip clipBehavior = Clip.hardEdge,
Creates a variant of Viewport that has a SliverOverlapAbsorberHandle.
The handle must not be null.
Implementation
NestedScrollViewViewport({
Key? key,
AxisDirection axisDirection = AxisDirection.down,
AxisDirection? crossAxisDirection,
double anchor = 0.0,
required ViewportOffset offset,
Key? center,
List<Widget> slivers = const <Widget>[],
required this.handle,
Clip clipBehavior = Clip.hardEdge,
}) : assert(handle != null),
super(
key: key,
axisDirection: axisDirection,
crossAxisDirection: crossAxisDirection,
anchor: anchor,
offset: offset,
center: center,
slivers: slivers,
clipBehavior: clipBehavior,
);