getInstance static method

TerraApp getInstance([
  1. String name = defaultAppName
])

Implementation

static TerraApp getInstance([String name = defaultAppName]) {
  final app = _terraApps[name];

  if (app == null) {
    throw Exception(
        "Terra App $name is not initialized! Invoke TerraApp.initializeApp(...) first");
  }

  return app;
}