ChatroomService constructor Null safety

ChatroomService()

Implementation

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