DsDivider class
A horizontal or vertical divider line using the theme's border color.
A horizontal divider (default) stretches to fill the available width and has thickness as its height. Place it in a context that provides a bounded width (e.g. a Column or any constrained box).
A vertical divider has thickness as its width and takes its height from
the parent's cross-axis constraint. When a vertical divider is placed in a
context where the cross axis is unbounded — for example a Row without
stretch alignment, or an unconstrained box — it would otherwise collapse to
zero height and become invisible. To keep it visible the vertical divider
falls back to a token-derived minimum height (length when provided, or
sizeTokens.size6). Provide an explicit length, or give the parent a
bounded height (e.g. via a SizedBox or IntrinsicHeight), to control the
extent.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DsDivider
Constructors
Properties
- color → DsColor?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- length → double?
-
The extent along the divider's main axis: the width of a horizontal
divider or the height of a vertical divider.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness → double
-
final
- vertical → bool
-
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