enable lint avoid_bool_literals_in_conditional_expressions (#35055)

This commit is contained in:
Alexandre Ardhuin
2019-06-25 17:40:05 +02:00
committed by GitHub
parent 9a3a7490c8
commit fecf99ff1e
21 changed files with 27 additions and 25 deletions

View File

@@ -247,7 +247,7 @@ class _ChipDemoState extends State<ChipDemo> {
return FilterChip(
key: ValueKey<String>(name),
label: Text(_capitalize(name)),
selected: _tools.contains(name) ? _selectedTools.contains(name) : false,
selected: _tools.contains(name) && _selectedTools.contains(name),
onSelected: !_tools.contains(name)
? null
: (bool value) {