boolean_selector 2.1.1 copy "boolean_selector: ^2.1.1" to clipboard
boolean_selector: ^2.1.1 copied to clipboard

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

example/example.dart

import 'package:boolean_selector/boolean_selector.dart';

void main(List<String> args) {
  var selector = BooleanSelector.parse('(x && y) || z');
  print(selector.evaluate((variable) => args.contains(variable)));
}
24
likes
160
pub points
98%
popularity

Publisher

verified publishertools.dart.dev

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

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

source_span, string_scanner

More

Packages that depend on boolean_selector