validate method
Validates the notification interval settings.
Throws an AwesomeNotificationsException if the interval is negative or less than 60 seconds when repeating.
Implementation
@override
void validate() {
if ((interval ?? -1) < 0) {
throw const AwesomeNotificationsException(
message: 'interval must be greater or equal to zero.');
}
if (repeats && (interval ?? 0) < 60) {
throw const AwesomeNotificationsException(
message: 'time interval must be greater or equal to 60 if repeating');
}
}