boolToConnectionStatus function Null safety
- bool? isOnline
Implementation
UserConnectionStatus boolToConnectionStatus(bool? isOnline) => isOnline == null
? UserConnectionStatus.notAvailable
: isOnline
? UserConnectionStatus.online
: UserConnectionStatus.offline;