Fix Size.isEmpty description (#172021)

Fixes #172004
This commit is contained in:
Ahmed Mohamed Sameh 2025-07-17 23:30:08 +03:00 committed by GitHub
parent d2534e118d
commit de0efff82a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -419,7 +419,7 @@ class Size extends OffsetBase {
/// * [isFinite], which checks whether both dimensions are finite.
static const Size infinite = Size(double.infinity, double.infinity);
/// Whether this size encloses a non-zero area.
/// Whether this size encloses a zero area.
///
/// Negative areas are considered empty.
bool get isEmpty => width <= 0.0 || height <= 0.0;