donateIntent method

Future<void> donateIntent(
  1. String identifier,
  2. Map<String, dynamic> params
)

Donates an executed intent so Siri / Apple Intelligence can learn that the user performed this action in-app (#55).

Wraps AppIntent.donate() (stable iOS 16+). identifier must match an intent declared @IntentSpec(donatable: true); params is the parameter map you'd otherwise pass at execution time — the reverse executor reconstructs the concrete intent from it before calling .donate().

iOS-only; a no-op on other platforms. See docs/adr/0003-donations-and-discovery.md.

Implementation

Future<void> donateIntent(String identifier, Map<String, dynamic> params) {
  throw UnimplementedError('donateIntent() has not been implemented.');
}