CutSeparator class
A horizontal dashed line separator, commonly used above a barcode section or to visually divide content within a ticket-style layout.
This widget automatically adapts its dash count based on the available width, ensuring an even, responsive dashed effect across all screen sizes.
Example:
const CutSeparator()
π‘ Usage Tip:
- Ideal for separating sections in travel tickets, receipts, or coupon UIs.
- You can customize the dash width, height, and color if needed.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CutSeparator
Constructors
- CutSeparator({Key? key})
-
const
Properties
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