sendEmail static method

Future<AuthResult> sendEmail(
  1. String email,
  2. String channel
)

send an email.

Implementation

static Future<AuthResult> sendEmail(String email, String channel) async {
  Map map = {};
  map.putIfAbsent('email', () => email);
  map.putIfAbsent('channel', () => channel);
  final Result result = await post('/api/v3/send-email', jsonEncode(map));
  return AuthResult(result);
}