refactor: check null

This commit is contained in:
Rongjian Zhang
2022-10-04 04:09:36 +08:00
parent 9b339c6cdf
commit 057bad71fe
3 changed files with 8 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ class GhBioWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (isNotNullOrEmpty(location)) {
if (location != null) {
return Row(
children: <Widget>[
Icon(