PollUpdateParams constructor Null safety

PollUpdateParams(
  1. {String? title,
  2. PollData? data,
  3. bool? allowUserSuggestion,
  4. bool? allowMutipleVotes,
  5. int closeAt = -1}
)

Implementation

PollUpdateParams({
  this.title,
  this.data,
  this.allowUserSuggestion,
  this.allowMutipleVotes,
  this.closeAt = -1,
}) : assert((title?.length ?? 0) <= 2000);