copyWith method

ModelIndex copyWith({
  1. List<String>? fields,
  2. String? name,
})

Make a copy of an existing ModelIndex instance.

Implementation

ModelIndex copyWith({
  List<String>? fields,
  String? name,
}) =>
    ModelIndex(fields: fields ?? this.fields, name: name ?? this.name);