BoundingBoxController class
- Inheritance
-
- Annotations
-
- @JsonSerializable.new(fieldRename: FieldRename.snake)
Constructors
-
BoundingBoxController({required Offset position, required Size size, double rotation = 0, bool enable = false, bool? enableRotate = true, bool? enableMove = true, double actionSize = defaultActionSize, Color? handleResizeBackgroundColor, Color? handleResizeStrokeColor, Color? handleRotateBackgroundColor, Color? handleRotateStrokeColor, Color? handleMoveBackgroundColor, Color? handleMoveStrokeColor, Color? strokeColor, double? strokeWidth, double? handleResizeStrokeWidth, double? handleRotateStrokeWidth, double? handleMoveStrokeWidth, Widget? rotateIcon, Widget? moveIcon, Widget? customHandleResize, Widget? customHandleRotate, Widget? customHandleMove, double? handlePosition, BoxDecoration? customDecoration})
-
-
BoundingBoxController.fromJson(Map<String, dynamic> json)
-
factory
Methods
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toJson()
→ Map<String, dynamic>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
update({Offset? newPosition, Size? newSize, double? newRotation, bool? newEnable, bool? newEnableRotate, bool? newEnableMove, double? newActionSize, Color? newHandleResizeBackgroundColor, Color? newHandleResizeStrokeColor, Color? newHandleRotateBackgroundColor, Color? newHandleRotateStrokeColor, Color? newHandleMoveBackgroundColor, Color? newHandleMoveStrokeColor, Color? newStrokeColor, double? newStrokeWidth, double? newHandleResizeStrokeWidth, double? newHandleRotateStrokeWidth, double? newHandleMoveStrokeWidth, Widget? newRotateIcon, Widget? newMoveIcon, Widget? newCustomHandleResize, Widget? newCustomHandleRotate, Widget? newCustomHandleMove, double? newHandlePosition, BoxDecoration? newCustomDecoration})
→ void
-
Update any property