+
Skip to content
Dart Email validator logo

Dart Email validator

App
A simple (but correct) Dart class for validating email addresses without using RegEx. Can also be used to validate emails wit
127 installs

Pricing

Student plan available.

Select a tab navigation

Email validator Build status pub package
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).

Installation
Dart requires the latest version of Dart. You can download the latest and greatest here.

  1. Depend on it
    Add this to your package's pubspec.yaml file:

dependencies:
email_validator: '^1.0.6'
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.

  1. Import it
    Now in your Dart code, you can use:

import 'package:email_validator/email_validator.dart';
Usage
Read the unit tests under test, or see code example below:

void main() {

var email = "fredrik@gmail.com";

assert(EmailValidator.validate(email));

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

298
LIKES
130
PUB POINTS
98%
POPULARITY
Metadata
A simple (but correct) dart class for validating email addresses

Repository (GitHub)
View/report issues
Documentation
API reference
Uploader
fredrik.eilertsen@gmail.com

License
MIT (LICENSE)

Dart Email validator screenshot

Plans and pricing

students with IT Background
$0
  • CSE
  • SWE
  • ITE
  • DSE

Next: Confirm your installation location

Dart Email validator is provided by a third-party and is governed by separate privacy policy and support documentation

About

A simple (but correct) Dart class for validating email addresses without using RegEx. Can also be used to validate emails wit
127 installs

Pricing

Student plan available.
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载