connectionStatusToBool function Null safety
- UserConnectionStatus status
Implementation
bool? connectionStatusToBool(UserConnectionStatus status) =>
status == UserConnectionStatus.notAvailable
? null
: status == UserConnectionStatus.online;