ensend_flutter 0.1.0
ensend_flutter: ^0.1.0 copied to clipboard
The official Dart/Flutter SDK for the Ensend multi-channel notification and messaging platform. Supports transactional email, email broadcasts, and SMTP.
Changelog #
All notable changes to this package will be documented here. The format follows Keep a Changelog.
0.1.0 - 2026-09-28 #
Added #
EnsendClient— main entry point with injectablehttp.Clientfor testing.SendApi— three methods covering the full Ensend Send API:sendMail— transactional email to up to 10 recipients (POST /send/mail)sendBroadcast— new broadcast campaign to up to 250 recipients (POST /send/mail/broadcast)sendBroadcastBatch— append a batch to an existing broadcast
- Models — fully immutable,
copyWith-enabled, andtoJson-ready:EmailSender,EmailRecipient,EmailTemplate,EmailAttachmentSendMailRequest,SendMailOptionsBroadcastMailRequest,BroadcastBatchRequest,BroadcastOptionsBroadcastSource(sealed:audience,csv),AudienceSourceConfig,CsvSourceConfigEnsendResponse<T>with.when()patternEnsendError
EnsendSmtpConfig— helper that exposes Ensend SMTP server settings (host, port, username, password) for use with third-party SMTP libraries.- Exception hierarchy (
sealed class EnsendException):EnsendValidationException— pre-flight request validationEnsendNetworkException— connectivity failuresEnsendTimeoutException— request timeoutEnsendSerializationException— JSON parse failures
- 54 unit tests covering models, validation, HTTP serialization, API response handling, and mock-based network scenarios.