copyWith method

ScreenableField copyWith({
  1. String? id,
  2. String? name,
})

Implementation

ScreenableField copyWith({String? id, String? name}) {
  return ScreenableField(
    id: id ?? this.id,
    name: name ?? this.name,
  );
}