pushTokenToString function Null safety

String? pushTokenToString(
  1. PushTokenType type
)

Implementation

String? pushTokenToString(PushTokenType type) {
  switch (type) {
    case PushTokenType.apns:
      return 'apns';
    case PushTokenType.fcm:
      return 'gcm';
    case PushTokenType.hms:
      return 'huawei';
    default:
      return null;
  }
}