FirebaseModelDownloader.instanceFor constructor Null safety

FirebaseModelDownloader.instanceFor(
  1. {required FirebaseApp app}
)

Returns an instance using a specified FirebaseApp.

Implementation

factory FirebaseModelDownloader.instanceFor({required FirebaseApp app}) {
  return _cachedInstances.putIfAbsent(app.name, () {
    return FirebaseModelDownloader._(app: app);
  });
}