boolean_selector 1.0.5 boolean_selector: ^1.0.5 copied to clipboard
A flexible syntax for boolean expressions, based on a simplified version of Dart's expression syntax.
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)));
}