instanceFor method Null safety

FirebaseDynamicLinks instanceFor(
  1. {required FirebaseApp app}
)

Returns an instance using a specified FirebaseApp. Note; multi-app support is only supported on android.

Implementation

static FirebaseDynamicLinks instanceFor({required FirebaseApp app}) {
  if (defaultTargetPlatform == TargetPlatform.android ||
      app.name == defaultFirebaseAppName) {
    return _cachedInstances.putIfAbsent(app.name, () {
      return FirebaseDynamicLinks._(app: app);
    });
  }

  throw UnsupportedError(
    'FirebaseDynamicLinks.instanceFor() only supports non-default FirebaseApp instances on Android.',
  );
}