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