defaultAvatar property

String get defaultAvatar

Returns the absolute url to the user's avatar

Implementation

String get defaultAvatar => _avatar != null
    ? '${Constants.cdnUrl}/avatars/$_id/${_avatar?.url}'
    : '${Constants.cdnUrl}/embed/avatars/${int.parse(_discriminator) % 5 }.png';