UserPushTokenUnregisterRequest constructor Null safety

UserPushTokenUnregisterRequest(
  1. {required PushTokenType type,
  2. required String token,
  3. String? userId}
)

Implementation

UserPushTokenUnregisterRequest({
  required PushTokenType type,
  required String token,
  String? userId,
}) : super(userId: userId) {
  final typeString = type == PushTokenType.fcm ? 'gcm' : type.asString();
  url = 'users/${userId ?? state.userId}/push/$typeString/$token';
}