Returns always the same instance of the IdGenerator in the context of an application.
Source
factory IdGen() {
if (_instance == null) {
_instance = new IdGen._internal();
}
return _instance;
}
Returns always the same instance of the IdGenerator in the context of an application.
factory IdGen() {
if (_instance == null) {
_instance = new IdGen._internal();
}
return _instance;
}