ZdsDashedLine class

A widget for creating dashed line or a container

ZdsDashedLine provides developers with the ability to create dashed lines. It also supports creating a dashed border for a Widget. Support for controlling the thickness, spacing, and corners of the dotted border.

ZdsDashedLine(
 corner: const ZdsDashedLineCorner.all(8),
 color: Colors.green,
 strokeWidth: 1.5,
 child: SizedBox(
   height: 200,
   width: 200,
 ),
)

This widget can be used as dashed line or dashed container. When supplied with height or child it will be a Container.

Inheritance
Available Extensions

Constructors

ZdsDashedLine({Key? key, Widget? child, Color? color, double? height, double? width, double dottedLength = 5.0, double space = 3.0, double strokeWidth = 1.0, ZdsDashedLineCorner? corner})
A widget for creating dashed line or a container
const

Properties

child Widget?
If child is set, ZdsDashedLine will serve as the dotted border of child. At this time, width and height will no longer be valid.
final
color Color?
Dotted line color.
final
corner ZdsDashedLineCorner?
The corners of the dotted border. See ZdsDashedLineCorner for details.
final
dottedLength double
The length of each small segment in the dotted line.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
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
The distance between each segment in the dotted line.
final
strokeWidth double
The thickness of the dotted line.
final
width double?
Width.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() ZdsDashedLineState
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.
override
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