Migrated to Null Safety
Added NumberRule
which checks if the value is a valid number or not
Added MinRule
which checks if the value is greater a specific number or not
Added MaxRule
which checks if the value is less than a specific number or not
MinLengthRule
, MaxLengthRule
now supports List and Map
RequiredRule
now supports List, Map and other Data types. In case of other Data type, nullability of the value is tested
Update Project Style
Migrate Example to AndroidX
Update Docs Dependencies
Validator.build()
deprecated in v0.4.0+2
EachRule
- Made
Validator
a callable class - Allow adding rules via
Validator
constructor
Validator.build()
- Moved all files to src folder. Use
import 'package:flrx_validator/flrx_validator.dart';
BREAKING CHANGE - Minor Code cleanup
- Fixed
transformMessage
not applying properly inAnyRule
- OneOfRule (deprecated in v0.3.0)
InRule
,NotInRule
OneOfRule
in favour ofInRule
- Minor Code Cleanup.
- Support for all Dart projects.
Initial Release