copyWith method

ScreenDetails copyWith({
  1. String? description,
  2. String? name,
})

Implementation

ScreenDetails copyWith({String? description, String? name}) {
  return ScreenDetails(
    description: description ?? this.description,
    name: name ?? this.name,
  );
}