pushTokenToString function Null safety
- 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;
}
}