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