MessageService constructor Null safety

MessageService()

Implementation

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