validate method

  1. @override
void validate()

Validates

Implementation

@override
void validate() {
  if ((interval ?? -1) < 0) {
    throw const LocalNotificationsException(
        message: 'interval must be greater or equal to zero.');
  }

  if (repeats && (interval ?? 0) < 60) {
    throw const LocalNotificationsException(
        message: 'time interval must be greater or equal to 60 if repeating');
  }
}