cake_wallet/lib/core/email_validator.dart
2022-06-01 03:47:00 +02:00

11 lines
298 B
Dart

import 'package:cake_wallet/core/validator.dart';
import 'package:cake_wallet/generated/i18n.dart';
class EmailValidator extends TextValidator {
EmailValidator()
: super(
errorMessage: 'Invalid email address',
pattern:
'^[^@]+@[^@]+\.[^@]+',
);
}