periodicallyShow method

  1. @override
Future<void> periodicallyShow(
  1. int id,
  2. String? title,
  3. String? body,
  4. RepeatInterval repeatInterval,
  5. {DarwinNotificationDetails? notificationDetails,
  6. String? payload}

Periodically show a notification using the specified interval. For example, specifying a hourly interval means the first time the notification will be an hour after the method has been called and then every hour after that.


Future<void> periodicallyShow(
  int id,
  String? title,
  String? body,
  RepeatInterval repeatInterval, {
  DarwinNotificationDetails? notificationDetails,
  String? payload,
}) async {
  await _channel.invokeMethod('periodicallyShow', <String, Object?>{
    'id': id,
    'title': title,
    'body': body,
    'repeatInterval': repeatInterval.index,
    'platformSpecifics': notificationDetails?.toMap(),
    'payload': payload ?? ''