ParticipantInfo constructor Null safety

ParticipantInfo(
  1. {@JsonKey(fromJson: dateTimeFromJson, toJson: dateTimeToJson) DateTime? joinedAt,
  2. required bool isLocal,
  3. required bool isOwner,
  4. ParticipantId? userId,
  5. @JsonKey(name: 'userName') String? username}
)

Implementation

factory ParticipantInfo({
  // ignore: invalid_annotation_target
  @JsonKey(fromJson: dateTimeFromJson, toJson: dateTimeToJson) DateTime? joinedAt,
  required bool isLocal,
  required bool isOwner,
  ParticipantId? userId,
  // ignore: invalid_annotation_target
  @JsonKey(name: 'userName') String? username,
}) = _ParticipantInfo;