ItemCase class

操作外壳

Inheritance

Constructors

ItemCase({Key? key, required Widget child, bool isCenter = true, Widget? tools, CaseStyle? caseStyle = const CaseStyle(), bool tapToEdit = false, OperatState? operatState = OperatState.idle, bool canEdit = false, void onDel()?, bool? onSizeChanged(Size size)?, bool? onOperatStateChanged(OperatState)?, bool? onOffsetChanged(Offset offset)?, bool? onAngleChanged(double offset)?, void onTap()?, Map<OperatConfiguration, bool>? toolConfiguration, Size? minSize})
const

Properties

canEdit bool
能否编辑
final
caseStyle CaseStyle?
外框样式
final
child Widget
子控件
final
hashCode int
The hash code for this object.
no setterinherited
isCenter bool
是否进行居中对齐(自动包裹Center)
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minSize Size?
最小尺寸
final
onAngleChanged → (bool? Function(double offset)?)
角度变化回调
final
onDel → (void Function()?)
移除拦截
final
onOffsetChanged → (bool? Function(Offset offset)?)
位置变化回调
final
onOperatStateChanged → (bool? Function(OperatState)?)
操作状态回调
final
onSizeChanged → (bool? Function(Size size)?)
尺寸变化回调 返回值可控制是否继续进行
final
onTap → (void Function()?)
点击回调
final
operatState OperatState?
操作状态
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tapToEdit bool
点击进行编辑,默认false
final
toolConfiguration Map<OperatConfiguration, bool>?
final
tools Widget?
工具层
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ItemCaseState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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