email_validator_flutter 1.0.0 email_validator_flutter: ^1.0.0 copied to clipboard
Email validator flutter and dart package is used to validate email address both in dart and flutter.
example/email_validator_flutter_example.dart
import 'package:email_validator_flutter/email_validator_flutter.dart';
void main() {
EmailValidatorFlutter emailValidatorFlutter = EmailValidatorFlutter();
final email1 = 'test@example.com';
final email2 = 'invalid_email@';
print('$email1 is valid: ${emailValidatorFlutter.validateEmail(email1)}');
print('$email2 is valid: ${emailValidatorFlutter.validateEmail(email2)}');
}