copyWith method Null safety

AnnouncementLoginData copyWith(
  1. {String? key}
)

Implementation

AnnouncementLoginData copyWith({
  String? key,
}) =>
    AnnouncementLoginData(
      key: key ?? this.key,
    );