UserService constructor Null safety

UserService()

Implementation

factory UserService() {
  if (_singleton == null) {
    _singleton = UserService._();
  }
  return _singleton!;
}