validated 2.0.0 validated: ^2.0.0 copied to clipboard
The ultimate string validator for dart and flutter with over 40+ validators
import 'package:validated/validated.dart' as validate;
void main() {
print(validate.isBoolean('a'));
print(validate.isEmail("adib@gmail.com"));
print(validate.isAscii("ABCDEF"));
print(validate.isSameType('String', false));
print(validate.isUpperCase("ADIB"));
print(validate.isCapitalized("Adib"));
print(validate.contains("Dart is nice", "nice"));
print(validate.isCurrency("\$"));
print(validate.isURL('https://www.google.com'));
print(validate.isEmoji("😀"));
}