StacDivider class
A Stac model representing Flutter's Divider
widget.
A thin horizontal line, with padding on either side.
In the material library, this represents a divider.
StacDivider(
thickness: 2.0,
color: StacColor('#FF0000'), // Red color
indent: 16.0,
endIndent: 16.0,
)
{
"widget": "Divider",
"thickness": 2.0,
"color": "#FF0000",
"indent": 16.0,
"endIndent": 16.0
}
See also:
- Flutter's Divider documentation
- Inheritance
-
- Object
- StacElement
- StacWidget
- StacDivider
- Annotations
-
- @JsonSerializable()
Constructors
- StacDivider.new({double? height, double? thickness, double? indent, double? endIndent, StacColor? color})
-
Creates a StacDivider.
const
-
StacDivider.fromJson(Map<
String, dynamic> json) -
Creates a StacDivider from a JSON map.
factory
Properties
- color → StacColor?
-
The color to use when painting the line.
final
- endIndent → double?
-
The amount of empty space to the trailing edge of the divider.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The divider's height extent.
final
- indent → double?
-
The amount of empty space to the leading edge of the divider.
final
-
jsonData
→ Map<
String, dynamic> ? -
Raw JSON data for this widget
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness → double?
-
The thickness of the line drawn within the divider.
final
- type → String
-
The type of the widget
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this StacDivider instance to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited