From cea17ccb9735575bc08217b0a566906b646f90c2 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Thu, 9 Feb 2017 09:27:27 -0800 Subject: [PATCH] Added a point about Point&Size to the Rect dartdoc (flutter/engine#3405) --- engine/src/flutter/lib/ui/geometry.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/flutter/lib/ui/geometry.dart b/engine/src/flutter/lib/ui/geometry.dart index 3bd313ec11b..222b5137ec2 100644 --- a/engine/src/flutter/lib/ui/geometry.dart +++ b/engine/src/flutter/lib/ui/geometry.dart @@ -481,6 +481,12 @@ class Point { /// An immutable 2D, axis-aligned, floating-point rectangle whose coordinates /// are relative to an origin point. +/// +/// A Rect can be created with one its constructors or with a [Point] and +/// a [Size] using the `&` operator: +/// ```dart +/// Rect myRect = const Point(1.0, 2.0) & const Size(3.0, 4.0); +///``` class Rect { Rect._();