Rectangle class Null safety

水印图片的位置和大小。

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

Rectangle({int? x, int? y, int? width, int? height})
Constructs a Rectangle
Rectangle.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
height int?
水印图片的高(px)。
@JsonKey(includeIfNull: false), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
width int?
水印图片的宽(px)。
@JsonKey(includeIfNull: false), read / write
x int?
左上角的横向偏移。
@JsonKey(includeIfNull: false), read / write
y int?
左上角的纵向偏移
@JsonKey(includeIfNull: false), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited