Circle class
圆
- Inheritance
-
- Object
- PaintContent
- Circle
Constructors
- Circle({bool isEllipse = false, bool startFromCenter = true})
- Circle.data({bool isEllipse = false, bool startFromCenter = true, required Offset center, required double radius, required Offset startPoint, required Offset endPoint, required Paint paint})
-
Circle.fromJson(Map<
String, dynamic> data) -
factory
Properties
- center ↔ Offset
-
圆心
getter/setter pair
- contentType → String
-
contentType for web
no setteroverride
- endPoint ↔ Offset
-
结束点
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEllipse → bool
-
是否为椭圆
final
- paint ↔ Paint
-
画笔
getter/setter pairinherited
- radius ↔ double
-
半径
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startFromCenter → bool
-
从圆心开始绘制
final
- startPoint ↔ Offset
-
起始点
getter/setter pair
Methods
-
copy(
) → Circle -
复制实例,避免对象传递
override
-
draw(
Canvas canvas, Size size, bool deeper) → void -
绘制核心方法
override
-
drawing(
Offset nowPoint) → void -
正在绘制
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startDraw(
Offset startPoint) → void -
开始绘制
override
-
toContentJson(
) → Map< String, dynamic> -
toJson
override
-
toJson(
) → Map< String, dynamic> -
toJson
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited