FDottedLine class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FDottedLine
Constructors
- FDottedLine({Key? key, Color color = Colors.black, double? height, double? width, double dottedLength = 5.0, double space = 3.0, double strokeWidth = 1.0, FDottedLineCorner? corner, Widget? child})
- FDottedLine 为开发者提供了创建虚线的能力。同时支持为一个 Widget 创建虚线边框。支持控制虚线的粗细,间距,以及虚线边框的边角。
Properties
- child → Widget?
-
如果设置了 child,FDottedLine 将会作为 child 的虚线边框。
此时,width 和 height 将不再有效。
final
- color → Color
-
虚线颜色
final
- corner → FDottedLineCorner?
-
虚线边框的边角。详见 FDottedLineCorner
final
- dottedLength → double
-
虚线中每一小段的长
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
高。如果只有 height,而没有 width,将获得一个垂直方向的虚线
如果同时有 width 和 height,将获得一个虚线边框。
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- space → double
-
虚线中每段间的距离
final
- strokeWidth → double
-
虚线的厚度
final
- width → double?
-
宽。如果只有 width,而没有 height,将获得一个水平方向的虚线
如果同时有 width 和 height,将获得一个虚线边框。
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _FDottedLineState -
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