validate method

  1. @override
void validate()

Validates

Implementation

@override
void validate() {
  if (LocalAssertUtils.isNullOrEmptyOrInvalid(channelKey, String)) {
    throw const LocalNotificationsException(
        message: 'Property channelKey is requried');
  }
  if (LocalAssertUtils.isNullOrEmptyOrInvalid(channelName, String)) {
    throw const LocalNotificationsException(
        message: 'Property channelName is requried');
  }
  if (LocalAssertUtils.isNullOrEmptyOrInvalid(channelDescription, String)) {
    throw const LocalNotificationsException(
        message: 'Property channelDescription is requried');
  }
}