完成空安全转换

This commit is contained in:
toly
2021-08-29 11:29:45 +08:00
parent 8a5a57f5ac
commit 5806f35f54
319 changed files with 2638 additions and 2019 deletions

View File

@@ -45,7 +45,7 @@ class _CustomDropDownButtonState extends State<CustomDropDownButton> {
color: _color,
),
items: _buildItems(),
onChanged: (v) => setState(() => _color = v)),
onChanged: (v) => setState(() => _color = v??Colors.blue)),
],
);
}