scheduleNotification method

Future<NotificationResult<void>> scheduleNotification(
  1. ScheduledNotification notification
)

Schedules notification for its configured time and recurrence.

Implementation

Future<NotificationResult<void>> scheduleNotification(
  ScheduledNotification notification,
) async {
  final failure = _precondition<void>(NotificationFeature.localScheduled);
  if (failure != null) return failure;
  return _factory!.scheduleUseCase.call(notification);
}