mailStub top-level property

String mailStub
getter/setter pair

Implementation

String mailStub = '''
import 'package:vania/vania.dart';

class MailableName extends Mailable {
  final String to;
  final String text;
  final String subject;

  const MailableName({required this.to, required this.text, required this.subject});

  @override
  List<Attachment>? attachments() {
    return null;
  }

  @override
  Content content() {
    return Content(
      text: text,
    );
  }

  @override
  Envelope envelope() {
    return Envelope(
      from: Address('From Email Address','From Name'),
      to: [Address(to)],
      subject: subject,
    );
  }
}

''';