Hook class
Webhook configuration builder for DigetSposPlugin.configureHook.
Mirrors the native Hook builder — chain initiate and transaction to
set the endpoints:
DigetSposPlugin.configureHook(
Hook()
.initiate('https://…/init')
.transaction('https://…/txn'),
encryptor: (data) => myEncrypt(data),
);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Headers applied to every hook POST. The bridge uses a single set, so the
per-endpoint headers are merged (transaction overrides initiate on key clash).
no setter
-
initiateHeaders
↔ Map<
String, String> -
getter/setter pair
- initiateUrl ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transactionHeaders
↔ Map<
String, String> -
getter/setter pair
- transactionUrl ↔ String?
-
getter/setter pair
Methods
-
initiate(
String url, [Map< String, String> headers = const {}]) → Hook -
Endpoint the SDK POSTs to after initialization. Returns
thisfor chaining. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transaction(
String url, [Map< String, String> headers = const {}]) → Hook -
Endpoint the SDK POSTs to after each transaction. Returns
thisfor chaining.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited