copyWith method

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

Implementation

AntdScrollToIndexConfig copyWith(
    {bool? jump,
    Duration? duration,
    Curve? curve,
    AntdEdge? viewportAlign,
    AntdEdge? itemAlign,
    bool? set,
    int Function(int total)? getTargetSize}) {
  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,
    getTargetSize: getTargetSize ?? this.getTargetSize,
  );
}