showDailyAtTime method

  1. @Deprecated('Deprecated due to problems with time zones. Use zonedSchedule instead.')
Future<void> showDailyAtTime(
  1. int id,
  2. String? title,
  3. String? body,
  4. Time notificationTime,
  5. DarwinNotificationDetails? notificationDetails, {
  6. String? payload,
})

Shows a notification on a daily interval at the specified time.

Implementation

@Deprecated(
    'Deprecated due to problems with time zones. Use zonedSchedule instead.')
Future<void> showDailyAtTime(
  int id,
  String? title,
  String? body,
  Time notificationTime,
  DarwinNotificationDetails? notificationDetails, {
  String? payload,
}) async {
  validateId(id);
  await _channel.invokeMethod('showDailyAtTime', <String, Object?>{
    'id': id,
    'title': title,
    'body': body,
    'calledAt': clock.now().millisecondsSinceEpoch,
    'repeatInterval': RepeatInterval.daily.index,
    'repeatTime': notificationTime.toMap(),
    'platformSpecifics': notificationDetails?.toMap(),
    'payload': payload ?? ''
  });
}