ready_validation 2.5.0-dev-1 ready_validation: ^2.5.0-dev-1 copied to clipboard
Collection of extension methods to make validation simple , clean and fast
import 'package:ready_validation/ready_validation.dart';
void main() {
var number = "7";
var isValid = number
.validateWith((v) => v.isNumber())
.validateWith((v) => v.isBetween(5, 10))
.isValid();
/// or
isValid = number.validateWith((v) => v.isNumber().isBetween(5, 10)).isValid();
// ignore: avoid_print
print(isValid);
}