setFillColor method
Set the whiteboard fill color.
Parameter color
WBColor object. Valid value ranges between 0 and 1.
Returns
- ResultCode.OK Success
- others: Failure
Note Only works when the fill type is set to WBFillType.Color.
设置白板填充颜色。
Parameter color
WBColor 对象。有效值范围0到1。
Returns
- ResultCode.OK 成功
- 其他: 失败
Note 仅当设置填充类型为WBFillType.Color起效。
Implementation
@override
Future<ResultCode> setFillColor(WBColor color) {
return _invokeCodeMethod('setFillColor', {'color': color.toJson()});
}