copyWith method

JsonValueItem copyWith({
  1. JsonValue? item,
  2. List<List<JsonValue>>? arrayReferences,
  3. List<List<(String, JsonValue)>>? mapReferences,
})

Returns a new instance by overriding the values passed as arguments

Implementation

JsonValueItem copyWith({
  JsonValue? item,
  List<List<JsonValue>>? arrayReferences,
  List<
          List<
              (
                String,
                JsonValue,
              )>>?
      mapReferences,
}) =>
    JsonValueItem(
        item: item ?? this.item,
        arrayReferences: arrayReferences ?? this.arrayReferences,
        mapReferences: mapReferences ?? this.mapReferences);