currentPlatform property

FirebaseOptions get currentPlatform

Implementation

static FirebaseOptions get currentPlatform {
  if (kIsWeb) {
    throw UnsupportedError(
      'DefaultFirebaseOptions have not been configured for web.',
    );
  }
  return switch (defaultTargetPlatform) {
    TargetPlatform.android => android,
    TargetPlatform.iOS => ios,
    _ => throw UnsupportedError(
        'DefaultFirebaseOptions are not supported for this platform.',
      ),
  };
}