copyWith method

OrderCriteria copyWith({
  1. String fieldName()?,
  2. OrderDirections direction()?,
})

Implementation

OrderCriteria copyWith({
  String Function()? fieldName,
  OrderDirections Function()? direction,
}) {
  return OrderCriteria(
    fieldName: fieldName == null ? this.fieldName : fieldName(),
    direction: direction == null ? this.direction : direction(),
  );
}