copyWith method

  1. @override
FastReportEntry copyWith({
  1. String? name,
  2. String? value,
  3. Color? color,
})
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
FastReportEntry copyWith({
  String? name,
  String? value,
  Color? color,
}) {
  return FastReportEntry(
    name: name ?? this.name,
    value: value ?? this.value,
    color: color ?? this.color,
  );
}