validate method

  1. @override
void validate()
inherited

Validates

Implementation

@override
void validate() {
  if (LocalAssertUtils.isNullOrEmptyOrInvalid(_id, int)) {
    throw const LocalNotificationsException(
        message: 'Property id is required');
  }
  if (LocalAssertUtils.isNullOrEmptyOrInvalid(_channelKey, String)) {
    throw const LocalNotificationsException(
        message: 'Channel Key is required');
  }
}