FLUTTER ECOSYSTEM

boolean_selector

A flexible syntax for boolean expressions, based on a simplified version of Dart's expression syntax.

Latest version
2.1.2
30-day downloads
10M
Likes
38
Pub points
160

Package Overview

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

Overview

A Dart package that provides a flexible, simplified syntax for creating and evaluating boolean expressions. Inspired by Dart's expression syntax, it enables developers to define complex logical conditions using intuitive operators like &&, ||, and !. The package is designed for use in scenarios requiring dynamic condition evaluation, such as state management, testing, or UI logic. It supports parsing and executing boolean expressions at runtime with minimal overhead.

Use cases
  • Dynamic condition evaluation
  • State management logic
  • Testing framework assertions
  • UI visibility rules
  • Rule-based systems
  • Configuration filtering
Key features
  • Simple, readable syntax
  • Supports &&, ||, and ! operators
  • Runtime expression evaluation
  • Lightweight and efficient
  • Easy integration with Dart code
  • Flexible for complex logic
Suitable for
  • Developers building rule-based applications
  • Testers needing expressive assertions
  • State management solutions
  • UI logic with conditional rendering
  • Applications requiring configurable business rules
Considerations
  • Not suitable for very large or complex expressions without optimization
  • Requires careful validation of input strings
  • Limited to boolean logic only
  • No built-in support for variables or functions
  • Performance may degrade with deeply nested expressions
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add boolean_selector

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects