AgoraImage class Null safety

Agora 图像属性。用于设置直播视频的水印和背景图片的属性。

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
height int?
图片在视频帧上的高度。
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url String
直播视频上图片的 HTTP/HTTPS 地址,字符长度不得超过 1024 字节。
read / write
width int?
图片在视频帧上的宽度。
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