copyWith method

CompleteResultCompletion copyWith({
  1. bool? hasMore,
  2. int? total,
  3. List<String>? values,
})

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

CompleteResultCompletion copyWith({
  bool? hasMore,
  int? total,
  List<String>? values,
}) =>
    CompleteResultCompletion.fromJson({
      ...toJson(),
      if (hasMore != null) 'hasMore': $encode(hasMore),
      if (total != null) 'total': $encode(total),
      if (values != null) 'values': $encode(values),
    });