view abstract method

Future<MailerInterface> view(
  1. String viewName, [
  2. Map<String, dynamic>? data
])

Renders a view template for the email body.

The view is rendered using the Khadem view system.

Example:

await mailer.view('emails.welcome', {'name': 'John'});

Implementation

Future<MailerInterface> view(String viewName, [Map<String, dynamic>? data]);