DottedContainer class

A widget that creates a container with a dotted decoration.

The DottedContainer widget allows you to create a container with a customizable dotted decoration. Basic Dotted Container properties.

Inheritance

Constructors

DottedContainer({Key? key, required double height, required double width, LinePosition linePosition = LinePosition.bottom, Shape shape = Shape.line, Color color = Colors.black, BorderRadius borderRadius = BorderRadius.zero, List<int> dash = const [4, 4], double strokeWidth = 1, Widget? child, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Color? fillColor = Colors.transparent, DecorationImage? decorationImage})
const

Properties

borderRadius BorderRadius
borderRadius defines the border radius of the container. borderRadius is ignored if shape is Shape.circle. Default borderRadius value is BorderRadius.zero.
final
child Widget?
The child widget to be placed inside the container.
final
color Color
color defines the color of the dotted decoration. Default color value is Colors.black.
final
dash List<int>
dash defines the dash pattern for the dotted decoration.
final
decorationImage DecorationImage?
The decoration image for the container. decorationImage defines the decoration widget of the child widget. fillColor is ignored when the decorationImage is not null.
final
fillColor Color?
The fill color of the container. fillColor defines the color of the child widget. fillColor is ignored when the decorationImage is not null. Default fillColor value is Colors.transparent.
final
hashCode int
The hash code for this object.
no setterinherited
height double
height defines height of the container.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
linePosition LinePosition
An enumeration that defines the position of the dotted line. The linePosition values can be LinePosition.left, LinePosition.right, LinePosition.top or LinePosition.bottom. Default linePosition value is LinePosition.bottom.
final
margin EdgeInsetsGeometry?
margin defines the margin of the dotted container.
final
padding EdgeInsetsGeometry?
padding defines the padding of the dotted container.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape Shape
An enumeration that defines the shape of the dotted decoration. The shape values can be Shape.line, Shape.box, Shape.circle. Default shape value is Shape.line.
final
strokeWidth double
strokeWidth defines the stroke width of the dotted decoration. Default strokeWidth value is 1.
final
width double
width defines the width of the container. If width is double.infinity, get the maximum value of the parent widget.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, int wrapWidth = 65}) 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