setParticipantsListener method Null safety

void setParticipantsListener(
  1. {dynamic listener(
    1. List<Participant>
    )?}
)

Implementation

void setParticipantsListener({Function(List<Participant>)? listener}){
  _participantsListener = listener;
}