copyWith method

Actor copyWith({
  1. String? reference,
  2. String? display,
})

Creates a copy of the Actor instance and allows for non-destructive mutation

Implementation

Actor copyWith({
  String? reference,
  String? display,
}) =>
    Actor(
      reference: reference ?? this.reference,
      display: display ?? this.display,
    );