Skip to content
pubscout

check_disposable_email

0.2.1, released 12 months ago by an unverified publisher

Check whether an email address uses a valid or disposable domain name.

WASM-ready
$ flutter pub add check_disposable_email
Source repository

What it does

Provides methods to validate email address formats, extract and normalize domains, and check if an email uses a known disposable or temporary email service. Features optimized O(1) domain lookups with a built-in list of over 3,200 domains.

AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to prevent users from registering with temporary or disposable email addresses.
  • You need RFC 5322 compliant email format validation alongside disposable domain checks.

Skip it when

  • You need to verify the email box actually exists by sending an email or performing an MX record lookup.

Strengths

  • Fast O(1) set-based lookups for disposable domains
  • Provides detailed validation results including format checks and error messages
  • Comprehensive null safety and whitespace handling

Weaknesses

  • Relies on a static built-in list of disposable domains which may require package updates to catch newly created temporary email providers

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:check_disposable_email/check_disposable_email.dart';

bool isValid = Disposable.instance.hasValidEmail('user@gmail.com');
EmailValidationResult result = Disposable.instance.validateEmail('user@mailinator.com');

Alternatives

Packages that do the same job and could replace check_disposable_email.

  • fzregex

    A regex validation library for common user input, identifiers, media formats, and financial data.

  • email_validator_flutter

    A Dart and Flutter package for validating email addresses using regular expressions.

  • validator_regex

    A Dart package for validating emails, URLs, IP addresses, and other common input formats using regex.