app function

App app([
  1. String? name
])

Retrieves an instance of an App.

With no arguments, this returns the default App. With a single string argument, it returns the named App.

This function throws an exception if the app you are trying to access does not exist.

See: firebase.google.com/docs/reference/js/firebase.app.

Implementation

App app([String? name]) {
  final jsObject = (name != null) ? firebase.app(name) : firebase.app();

  return App.getInstance(jsObject);
}