Skip to content

Commit dafc3c1

Browse files
committed
on Exception
1 parent 487fae8 commit dafc3c1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/src/widgets/property_widgets/border_radius_property.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ class _BorderRadiusPropertyState extends State<BorderRadiusProperty> {
6060
bottomRight: Radius.circular(bottomRight),
6161
);
6262
}
63-
// ignore: avoid_catches_without_on_clauses
64-
} catch (err) {
63+
} on Exception catch (_) {
6564
return null;
6665
}
6766
}

lib/src/widgets/property_widgets/edge_insets_property.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class _EdgeInsetsPropertyState extends State<EdgeInsetsProperty> {
5353

5454
return EdgeInsets.fromLTRB(left, top, right, bottom);
5555
}
56-
// ignore: avoid_catches_without_on_clauses
57-
} catch (err) {
56+
} on Exception catch (_) {
5857
return null;
5958
}
6059
}

0 commit comments

Comments
 (0)