setValue static method Null safety

NotificationBadge setValue(
  1. int badgeValue
)

Create a notification badge object, which will set the badge number with the specified value. badgeValue Badge value.

Implementation

static NotificationBadge setValue(int badgeValue) {
  var badge = NotificationBadge();
  badge.badge = badgeValue;
  return badge;
}