提交 44eaa416 编写于 作者: H Hans Muller 提交者: GitHub

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

上级 fc61ec11
......@@ -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._();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册