Skip to content

Commit

Permalink
Create example.dart
Browse files Browse the repository at this point in the history
The pub site can show example code for a package.
https://www.dartlang.org/tools/pub/package-layout#examples

related issue : dart-lang/site-www#413
  • Loading branch information
bcko authored May 26, 2018
1 parent 83b690b commit e76cb8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/example.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:boolean_selector/boolean_selector.dart';

void main(List<String> args) {
var selector = new BooleanSelector.parse("(x && y) || z");
print(selector.evaluate((variable) => args.contains(variable)));
}

0 comments on commit e76cb8a

Please sign in to comment.