GuerrillaMailApi constructor
GuerrillaMailApi(
{ - Uri? apiEndpoint,
- String locale = 'en',
- String? sessionId,
})
Implementation
GuerrillaMailApi({
/// the endpoint to access the API at
/// default to the official Guerrilla Mail endpoint
Uri? apiEndpoint,
this.locale = 'en',
/// used to optionally import an existing session
String? sessionId,
}) {
assert(locales.contains(locale),
'`locale` must be one of $locales but is set to $locale.');
if (sessionId != null) _phpsessid = sessionId;
this.apiEndpoint =
apiEndpoint ?? Uri.parse('https://api.guerrillamail.com/ajax.php');
}