We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 536fb27 commit 784905eCopy full SHA for 784905e
lib/ui/geometry.dart
@@ -1149,6 +1149,15 @@ class RRect {
1149
/// Negative areas are considered empty.
1150
bool get isEmpty => left >= right || top >= bottom;
1151
1152
+ /// Whether this rounded rectangle is a simple rectangle with zero
1153
+ /// corner radii.
1154
+ bool get isRect {
1155
+ return (tlRadiusX == 0.0 || tlRadiusY == 0.0) &&
1156
+ (trRadiusX == 0.0 || trRadiusY == 0.0) &&
1157
+ (blRadiusX == 0.0 || blRadiusY == 0.0) &&
1158
+ (brRadiusX == 0.0 || brRadiusY == 0.0);
1159
+ }
1160
+
1161
/// Whether this rounded rectangle has a side with no straight section.
1162
bool get isStadium {
1163
return (
0 commit comments