FLUTTER ECOSYSTEM

fluent_validation

A dart based port of fluent validation for C#. FluentValidation allows easy validation of objects without crazy amounts of boilerplate.

Latest version
2.1.1
30-day downloads
82
Likes
23
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

FluentValidation is a Dart port of the popular C# FluentValidation library, enabling clean, readable, and maintainable object validation with minimal boilerplate. It provides a fluent API for defining validation rules directly on model classes, supporting complex validation scenarios including conditional logic, custom validators, and error messages. Ideal for applications requiring robust data validation across multiple platforms.

Use cases
  • Form input validation
  • API request body validation
  • Data model integrity checks
  • User registration workflows
  • Business rule enforcement
  • Cross-platform validation
Key features
  • Fluent, chainable syntax
  • Custom validator support
  • Conditional validation rules
  • Integrated error message handling
  • Supports async validation
  • Extensible validation logic
Suitable for
  • Developers using Dart with Flutter
  • Projects requiring structured validation
  • Teams adopting clean code practices
  • Applications with complex business rules
  • Multi-platform apps needing consistent validation
Considerations
  • Requires learning its DSL
  • May add overhead for simple validations
  • Limited documentation compared to mature libraries
  • Not ideal for very basic validation needs
  • Integration with existing form solutions may require extra setup
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add fluent_validation

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

No data available yet.