create static method

PNNotification create(
  1. Map<String, dynamic> input
)

Implementation

static PNNotification create(Map<String, dynamic> input) {
  if (Platform.isAndroid) {
    return PNAndroidNotification(input);
  } else if (Platform.isIOS) {
    return PNiOSNotification(input);
  }
  throw NotSupportedException();
}