showDailyAtTime method
- @Deprecated('Deprecated due to problems with time zones. Use zonedSchedule instead.')
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,
AndroidNotificationDetails? 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 ?? ''
});
}