FFXConnectors class

Connectors surface: calls a third-party service (Slack, Resend, …) through the platform, which holds the credential.

The connection is made by the maker in Project Settings › Connections; app code only names the connector and the operation. The platform validates call's params against the operation's schema, authorizes the call, injects the credential, calls the provider, and returns the operation's result object. No credential ever reaches the app.

final result = await cloud.connectors.call(
  'slack', 'postMessage',
  params: {'channel': '#general', 'text': 'Deployed!'},
);

A call is a mutation: it carries an idempotency key, so the SDK's transport retries never reach the provider twice. How each connector problem maps to a typed error, and its FFXApiError.userMessage, is in the package README's Connectors section.

Constructors

FFXConnectors(HttpCore _http)

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

call(String connector, String operation, {Map<String, Object?> params = const {}}) → Future<Map<String, Object?>>
Runs operation on connector with params and returns the operation's result object (the response's data member).
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