copyWith method

Query copyWith({
  1. List<List<num>>? coordinates,
  2. String? profile,
  3. String? preference,
  4. String? format,
  5. String? units,
  6. String? language,
  7. String? instructionsFormat,
  8. bool? elevation,
  9. List<String>? extraInfo,
  10. AlternativeRoutes? alternativeRoutes,
})

Implementation

Query copyWith({
  List<List<num>>? coordinates,
  String? profile,
  String? preference,
  String? format,
  String? units,
  String? language,
  String? instructionsFormat,
  bool? elevation,
  List<String>? extraInfo,
  AlternativeRoutes? alternativeRoutes,
}) =>
    Query(
      coordinates: coordinates ?? this.coordinates,
      profile: profile ?? this.profile,
      preference: preference ?? this.preference,
      format: format ?? this.format,
      units: units ?? this.units,
      language: language ?? this.language,
      instructionsFormat: instructionsFormat ?? this.instructionsFormat,
      elevation: elevation ?? this.elevation,
      extraInfo: extraInfo ?? this.extraInfo,
      alternativeRoutes: alternativeRoutes ?? this.alternativeRoutes,
    );