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

outdated

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)));
}
copied to clipboard
26
likes
35
points
3.29M
downloads

Publisher

verified publishertools.dart.dev

Weekly Downloads

2024.07.06 - 2025.01.18

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

Repository (GitHub)
Contributing

License

BSD-3-Clause (license)

Dependencies

source_span, string_scanner

More

Packages that depend on boolean_selector