validate method

  1. @override
void validate()

Validates the crontab schedule settings.

Throws an AwesomeNotificationsException if both crontabExpression and preciseSchedules are null.

Implementation

@override
void validate() {
  if (_crontabExpression == null && _preciseSchedules == null) {
    throw const AwesomeNotificationsException(
        message:
            'At least crontabExpression or preciseSchedules is requried');
  }
}