copyWith method

Mark copyWith({
  1. Offset? position,
  2. Offset? endPosition,
  3. int? type,
  4. bool? isFocus,
  5. List<String>? imagePaths,
  6. List<String>? imageLinks,
  7. bool? isNew,
})

Implementation

Mark copyWith({
  Offset? position,
  Offset? endPosition,
  int? type,
  bool? isFocus,
  List<String>? imagePaths,
  List<String>? imageLinks,
  bool? isNew,
}) {
  return Mark(
    position: position ?? this.position,
    endPosition: endPosition ?? this.endPosition,
    type: type ?? this.type,
    isFocus: isFocus ?? this.isFocus,
    imagePaths: imagePaths ?? this.imagePaths,
    imageLinks: imageLinks ?? this.imageLinks,
    isNew: isNew ?? this.isNew,
  );
}