copyWith method
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
SliverGeometry copyWith({
double? scrollExtent,
double? paintExtent,
double? paintOrigin,
double? layoutExtent,
double? maxPaintExtent,
double? maxScrollObstructionExtent,
double? crossAxisExtent,
double? hitTestExtent,
bool? visible,
bool? hasVisualOverflow,
double? cacheExtent,
}) {
return SliverGeometry(
scrollExtent: scrollExtent ?? this.scrollExtent,
paintExtent: paintExtent ?? this.paintExtent,
paintOrigin: paintOrigin ?? this.paintOrigin,
layoutExtent: layoutExtent ?? this.layoutExtent,
maxPaintExtent: maxPaintExtent ?? this.maxPaintExtent,
maxScrollObstructionExtent: maxScrollObstructionExtent ?? this.maxScrollObstructionExtent,
crossAxisExtent: crossAxisExtent ?? this.crossAxisExtent,
hitTestExtent: hitTestExtent ?? this.hitTestExtent,
visible: visible ?? this.visible,
hasVisualOverflow: hasVisualOverflow ?? this.hasVisualOverflow,
cacheExtent: cacheExtent ?? this.cacheExtent,
);
}