Added a point about Point&Size to the Rect dartdoc (flutter/engine#3405)

This commit is contained in:
Hans Muller 2017-02-09 09:27:27 -08:00 committed by GitHub
parent 1d95ca0ba0
commit cea17ccb97

View File

@ -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._();