mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Added a point about Point&Size to the Rect dartdoc (flutter/engine#3405)
This commit is contained in:
parent
1d95ca0ba0
commit
cea17ccb97
@ -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._();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user