NotificationFailure.scheduling constructor

NotificationFailure.scheduling({
  1. String? details,
  2. StackTrace? stackTrace,
})

Creates a notification failure for scheduling errors.

Implementation

factory NotificationFailure.scheduling({
  String? details,
  StackTrace? stackTrace,
}) {
  return NotificationFailure(
    message: 'Failed to schedule notification',
    code: 'SCHEDULING_ERROR',
    details: details,
    stackTrace: stackTrace,
  );
}