validate method

  1. @override
void validate()

Validates the properties of the channel group.

Throws an AwesomeNotificationsException if either the channelGroupKey or channelGroupName is missing.

Implementation

@override
void validate() {
  if (AwesomeAssertUtils.isNullOrEmptyOrInvalid(_channelGroupKey)) {
    throw const AwesomeNotificationsException(
        message: 'channelGroupKey is required');
  }
  if (AwesomeAssertUtils.isNullOrEmptyOrInvalid(_channelGroupName)) {
    throw const AwesomeNotificationsException(
        message: 'channelGroupName is required');
  }
}