show method

  1. @override
Future<void> show(
  1. int id,
  2. String title,
  3. String body,
  4. {IOSNotificationDetails notificationDetails,
  5. String payload}

Show a notification with an optional payload that will be passed back to the app when a notification is tapped on.


Future<void> show(
  int id,
  String title,
  String body, {
  IOSNotificationDetails notificationDetails,
  String payload,
}) {
  return _channel.invokeMethod(
    <String, Object>{
      'id': id,
      'title': title,
      'body': body,
      'payload': payload ?? '',
      'platformSpecifics': notificationDetails?.toMap(),