mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
parent
d2534e118d
commit
de0efff82a
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user