copyWith method

SortByOption copyWith({
  1. ID? id,
  2. bool? asc,
  3. String? jsonKey,
})

Implementation

SortByOption copyWith({
  ID? id,
  bool? asc,
  String? jsonKey,
}) {
  return SortByOption(
    id: id ?? this.id,
    asc: asc ?? this.asc,
    jsonKey: jsonKey ?? this.jsonKey,
  );
}