ResendProvider class
Sends emails via the Resend API.
Required dependency: dio (already in pubspec).
EmailService.instance.configure(
provider: ResendProvider(
apiKey: Env.resendApiKey,
fromEmail: 'noreply@example.com',
),
);
- Implemented types
Constructors
- ResendProvider({required String apiKey, required String fromEmail})
-
Creates a Resend email provider.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
EmailMessage message) → Future< EmailResult> -
Sends
messageand returns an EmailResult.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited