copyWith method

  1. @override
FastDictEntryEntity copyWith({
  1. String? name,
  2. dynamic value,
})
override

Creates a copy of this TModel but with the given fields replaced with the new values.

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastDictEntryEntity copyWith({
  String? name,
  dynamic value,
}) =>
    FastDictEntryEntity(
      name: name ?? this.name,
      value: value ?? this.value,
    );