copyWith method

ScrollToIndexAction copyWith({
  1. ID? id,
  2. String? type,
  3. ActionGroups? group,
  4. ID? controllerID,
  5. int? index,
})

Implementation

ScrollToIndexAction copyWith({
  ID? id,
  String? type,
  ActionGroups? group,
  ID? controllerID,
  int? index,
}) {
  return ScrollToIndexAction(
    id: id ?? this.id,
    type: type ?? this.type,
    controllerID: controllerID ?? this.controllerID,
    index: index ?? this.index,
  );
}