GoogleCloudHelpers class

Google Cloud (incl. Firebase) specific helpers used in other modules.

Constructors

GoogleCloudHelpers()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

convertTimestamp(dynamic value) → dynamic
Converts a timestamp to a DateTime.
createAuthClient({required List<String> scopes, String? pathToServiceAccountJson}) Future<AuthClient>
Creates an auth client for the google cloud environment.
getInstanceId() Future<String>
getPlatform() GoogleCloudPlatform
Gets the google cloud platform the code is running on.
getProjectId({String? pathToServiceAccountJson}) Future<String>
Gets the google project id from the execution environment.
initializeFirebase({Map<String, String>? firebaseOptions, String? pathToServiceAccountJson, String? emulatorAddress, bool buildRelease = false, Client? authClient}) Future<Client?>
Initializes firebase