copyWith method

AntdScrollToIndexConfig copyWith({
  1. bool? jump,
  2. Duration? duration,
  3. Curve? curve,
  4. AntdEdge? viewportAlign,
  5. AntdEdge? itemAlign,
  6. bool? set,
})

Implementation

AntdScrollToIndexConfig copyWith({
  bool? jump,
  Duration? duration,
  Curve? curve,
  AntdEdge? viewportAlign,
  AntdEdge? itemAlign,
  bool? set,
}) {
  return AntdScrollToIndexConfig(
    jump: jump ?? this.jump,
    duration: duration ?? this.duration,
    curve: curve ?? this.curve,
    viewportAlign: viewportAlign ?? this.viewportAlign,
    itemAlign: itemAlign ?? this.itemAlign,
    set: set ?? this.set,
  );
}