FirebaseFunctionsPlatform class abstract
The interface that implementations of cloud_functions
must extend.
Platform implementations should extend this class rather than implement it
as cloud_functions
does not consider newly added methods to be breaking
changes. Extending this class (using extends
) ensures that the subclass
will get the default implementation, while platform implementations that
implements
this interface will be broken by newly added
FirebaseFunctionsPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- FirebaseFunctionsPlatform
Constructors
- FirebaseFunctionsPlatform(FirebaseApp? app, String region)
-
Create an instance using
app
andregion
. - FirebaseFunctionsPlatform.instanceFor({FirebaseApp? app, required String region})
-
Create an instance using
app
using the existing implementationfactory
Properties
- app → FirebaseApp?
-
The
FirebaseApp
this instance was initialized withfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- region → String
-
The region for the HTTPS trigger, such as "us-central1".
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delegateFor(
{FirebaseApp? app, required String region}) → FirebaseFunctionsPlatform -
Enables delegates to create new instances of themselves if a none default
FirebaseApp
instance or region is required by the user. -
httpsCallable(
String? origin, String name, HttpsCallableOptions options) → HttpsCallablePlatform - Creates a HttpsCallablePlatform instance
-
httpsCallableWithUri(
String? origin, Uri uri, HttpsCallableOptions options) → HttpsCallablePlatform - Creates a HttpsCallablePlatform instance from a Uri
-
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 Properties
- instance ↔ FirebaseFunctionsPlatform
-
The current default FirebaseFunctionsPlatform instance.
getter/setter pair