PushNotification constructor

PushNotification({
  1. String? title,
  2. StringValue? body,
  3. Any? data,
  4. Int32Value? badgeCount,
})

Implementation

factory PushNotification({
  $core.String? title,
  $0.StringValue? body,
  $1.Any? data,
  $0.Int32Value? badgeCount,
}) {
  final result = create();
  if (title != null) result.title = title;
  if (body != null) result.body = body;
  if (data != null) result.data = data;
  if (badgeCount != null) result.badgeCount = badgeCount;
  return result;
}