getInstance static method

ModelManager getInstance()

Returns the initialized ModelManager singleton.

Throws StateError if initialize was not called first.

Implementation

static ModelManager getInstance() {
  if (!_isInitialized || _instance == null) {
    throw StateError(
        'ModelManager is not initialized. Call ModelManager.initialize() first.');
  }
  return _instance!;
}