IdGen()

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;
}