ListStyle class
How ordered and unordered list items are drawn.
Every field is optional. An unset field falls back to the theme, then to the value the package used before this style existed — so setting one field changes one thing and nothing else moves.
A style on the widget wins over the theme per field, not per object.
- Annotations
Constructors
Properties
- bulletColor → Color?
-
Bullet colour. Defaults to the text colour.
final
- bulletShape → BoxShape?
-
Bullet shape. Defaults to a circle.
final
- bulletSize → double?
-
Bullet diameter. Defaults to 0.3x the font size.
final
- gapAfterMarker → double?
-
Space between marker and text. Defaults to the value each list kind
already used — 10 for bullets, 6 for numbers.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- indent → double?
-
Space before the marker. Defaults to the value each list kind already
used — 7 for bullets, 6 for numbers.
final
- markerTextStyle → TextStyle?
-
Style of the
1.marker. Defaults to weight 100.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{double? bulletSize, Color? bulletColor, BoxShape? bulletShape, TextStyle? markerTextStyle, double? indent, double? gapAfterMarker}) → ListStyle - A copy with the given fields replaced.
-
merge(
ListStyle? other) → ListStyle -
This style, with any unset field taken from
other, field by field. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
ColorScheme scheme) → ListStyle - This style with every remaining default filled in.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override