fix
parent
82065d9ff3
commit
b49af31d2c
|
@ -143,5 +143,5 @@ class MyCustomFormState extends StatelessWidget with InputValidationMixin {
|
||||||
}
|
}
|
||||||
|
|
||||||
mixin 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue