Email validator Build status pub package likes

A simple (but correct) Dart class for validating email addresses without using RegEx. Can also be used to validate emails within Flutter apps (see Flutter email validation).

Featured in:

  1. How To Validate Emails in Flutter by
  2. Flutter Tutorial - Email Validation In 7 Minutes by
  3. Flutter Tutorial - Email Validation | Package of the week by


1. Depend on it

Add this to your package's pubspec.yaml file:

    email_validator: '^2.1.16'

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support pub. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:email_validator/email_validator.dart';


Read the unit tests under test, or see code example below:

void main() {

    var email = "";



You can also use this repo as a template for creating Dart packages, just clone the repo and start hacking :)