GroupChannelParams constructor Null safety

GroupChannelParams(
  1. {bool isUpdate = false}
)

Constructor for GroupChannelParams

Should set isUpdate to false if creating new Group Channel (default is false) Should set isUpdate to true if updating existing group channel

Implementation

GroupChannelParams({bool isUpdate = false}) {
  if (!isUpdate) {
    isSuper = false;
    isBroadcast = false;
    isPublic = false;
    isDistinct = false;
    isEphemeral = false;
    isStrict = false;
    isExclusive = false;
  }
}