sendLocalNotification static method

Future<String> sendLocalNotification(
  1. LocalNotification notification
)

发送本地通知到调度器,指定时间出发该通知。 @param {Notification} notification

Implementation

static Future<String> sendLocalNotification(
    LocalNotification notification) async {
  print(flutter_log + "sendLocalNotification:");

  await _channel
      .invokeMethod('sendLocalNotification', [notification.toMap()]);

  return notification.toMap().toString();
}