XBImageEditorClipWidgetVM class

Inheritance

Constructors

XBImageEditorClipWidgetVM.new({required BuildContext context})

Properties

contentSize Size
no setterinherited
context BuildContext
finalinherited
displaySize Size
no setter
disposed bool
no setterinherited
fixedImgSize Size
no setterinherited
globalKey GlobalKey<XBImageEditorClipMaskPainterWidgetState>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
imgMaxSize Size
no setterinherited
initDisplayScale double
初始化时,图片的原始尺寸和真实显示大小的缩放比例
no setterinherited
isPointInsidePolygon bool
getter/setter pair
lastPoint Offset
getter/setter pairinherited
minBorderW double
getter/setter pair
models List<XBImageEditorGraphModel>
getter/setter pair
operaScale double
no setterinherited
padding double
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedModel XBImageEditorGraphModel
no setter
state ↔ XBWidgetState<XBVM>
getter/setter pairinherited
widget XBImageEditorClipWidget
no setterinherited
widgetSize Size
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
didChangeDependencies() → void
inherited
didCreated() → void
已经完成创建
inherited
didUpdateWidget(covariant XBImageEditorClipWidget oldWidget) → void
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
findSameXPoint(XBImageEditorGraphModelPoints point) XBImageEditorGraphModelPoints
findSameYPoint(XBImageEditorGraphModelPoints point) XBImageEditorGraphModelPoints
fixImgSize(Size imgSize) Size
inherited
fixTouchPosition(Offset localPosition) Offset
转成图片上的坐标
listen<E>(dynamic onData(E)) → dynamic
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → dynamic
通知刷新
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
rawPosition(Offset point) Offset
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited
updatePointAndNearPoints(XBImageEditorGraphModelPoints point, double newX, double newY) → dynamic
updatePointAndNearPointsAutoFix(XBImageEditorGraphModelPoints point, double newX, double newY) → dynamic
widgetDidBuilt() → void
页面已经build完成
inherited
widgetSizeDidChanged() → void

Operators

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