enable lint avoid_bool_literals_in_conditional_expressions (#35055)
This commit is contained in:
committed by
GitHub
parent
9a3a7490c8
commit
fecf99ff1e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user