Gravatar constructor

Gravatar(
  1. String email, {
  2. String gravatarUrl = "",
})

init with email as parameter

Implementation

Gravatar(String email, {String gravatarUrl = ""})
    : assert(email.isNotEmpty && email.trim().isValidEmail()),
      this._email = email.trim().toLowerCase(),
      this._gravatarUrl = _initGravatarUrl(gravatarUrl);