This commit is contained in:
Mikkel Nygaard Ravn
2018-07-04 14:03:01 +02:00
committed by GitHub
parent 9b3f50b7bc
commit 5faac99d92

View File

@@ -75,7 +75,7 @@ abstract class EdgeInsetsGeometry {
///
/// * [EdgeInsets.inflateRect], to inflate a [Rect] rather than a [Size] (for
/// [EdgeInsetsDirectional], requires first calling [resolve] to establish
/// how the start and and map to the left or right).
/// how the start and end map to the left or right).
/// * [deflateSize], to deflate a [Size] rather than inflating it.
Size inflateSize(Size size) {
return new Size(size.width + horizontal, size.height + vertical);
@@ -91,7 +91,7 @@ abstract class EdgeInsetsGeometry {
///
/// * [EdgeInsets.deflateRect], to deflate a [Rect] rather than a [Size]. (for
/// [EdgeInsetsDirectional], requires first calling [resolve] to establish
/// how the start and and map to the left or right).
/// how the start and end map to the left or right).
/// * [inflateSize], to inflate a [Size] rather than deflating it.
Size deflateSize(Size size) {
return new Size(size.width - horizontal, size.height - vertical);