UserService constructor Null safety
Implementation
factory UserService() {
if (_singleton == null) {
_singleton = UserService._();
}
return _singleton!;
}
factory UserService() {
if (_singleton == null) {
_singleton = UserService._();
}
return _singleton!;
}