boolean_selector 2.1.2 boolean_selector: ^2.1.2 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)));
}