master
ibal 2022-11-08 21:54:51 +01:00
parent 82065d9ff3
commit b49af31d2c
1 changed files with 1 additions and 1 deletions

View File

@ -143,5 +143,5 @@ class MyCustomFormState extends StatelessWidget with InputValidationMixin {
}
mixin InputValidationMixin {
bool isInputValid(String value) => new RegExp(r'[0-9]+.?[0-9]*').hasMatch(value);
bool isInputValid(String value) => !new RegExp(r'[0-9]+.?[0-9]*').hasMatch(value);
}