flrx_validator 0.6.0 copy "flrx_validator: ^0.6.0" to clipboard
flrx_validator: ^0.6.0 copied to clipboard

A powerful, extensible validator package to get validation messages based on a list of rules.

v0.6.0 #

Changed #

Migrated to Null Safety

v0.5.0 #

Added #

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

Changed #

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

Removed #

  • Validator.build() deprecated in v0.4.0+2

v0.4.0+2 #

Added #

  • EachRule
  • Made Validator a callable class
  • Allow adding rules via Validator constructor

Deprecated #

  • Validator.build()

Changed #

  • Moved all files to src folder. Use import 'package:flrx_validator/flrx_validator.dart'; BREAKING CHANGE
  • Minor Code cleanup

Fixed #

  • Fixed transformMessage not applying properly in AnyRule

Removed #

  • OneOfRule (deprecated in v0.3.0)

v0.3.0 #

Added #

  • InRule, NotInRule

Deprecated #

  • OneOfRule in favour of InRule

Changed #

  • Minor Code Cleanup.

v0.2.0 #

Added #

  • Support for all Dart projects.

v0.1.0 #

Initial Release

5
likes
140
pub points
87%
popularity

Publisher

unverified uploader

A powerful, extensible validator package to get validation messages based on a list of rules.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on flrx_validator