copyWith method

  1. @override
DistanceApptiveGridSorting copyWith({
  1. String? fieldId,
  2. SortOrder? order,
  3. Geolocation? location,
})
override

Creates a new Version of ApptiveGridSorting changing the values of this with fieldId and order if they are not null

Implementation

@override
DistanceApptiveGridSorting copyWith({
  String? fieldId,
  SortOrder? order,
  Geolocation? location,
}) {
  return DistanceApptiveGridSorting(
    fieldId: fieldId ?? this.fieldId,
    order: order ?? this.order,
    location: location ?? this.location,
  );
}