userToUserId function Null safety

String userToUserId(
  1. Map<String, dynamic>? userDic
)

Implementation

String userToUserId(Map<String, dynamic>? userDic) =>
    userDic != null ? userDic['user_id'] ?? userDic['guest_id'] : null;