firebaseSDKVersion property

  1. @visibleForTesting
String firebaseSDKVersion

Returns the Firebase JS SDK Version to use.

You can override the supported version by attaching a version string to the window (window.flutterfire_web_sdk_version = 'x.x.x'). Do so at your own risk as the version might be unsupported or untested against.

Implementation

@visibleForTesting
String get firebaseSDKVersion {
  final overridedWebSDKVersion =
      (globalContext['flutterfire_web_sdk_version'] as JSString?)?.toDart;
  return overridedWebSDKVersion ?? supportedFirebaseJsSdkVersion;
}