You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
424 B

import 'on_chat_message.dart';
class OnChatMsgInstance{
factory OnChatMsgInstance() => _getInstance();
static OnChatMsgInstance get instance => _getInstance();
static OnChatMsgInstance _instance;
OnChatMessage onChatMessage;
OnChatMsgInstance._internal();
static OnChatMsgInstance _getInstance(){
if(_instance == null){
_instance = OnChatMsgInstance._internal();
}
return _instance;
}
}