copyWith method

AuthorInfo copyWith({
  1. AuthorType? type,
  2. String? name,
})

Implementation

AuthorInfo copyWith({
  AuthorType? type,
  String? name
}) {
  return AuthorInfo(
    type: type ?? this.type,
    name: name ?? this.name
  );
}