StrutStyle
StrutStyle
#
TBD
force_strut_height
#
force_strut_height: bool | None = None
Whether the strut height should be forced.
Defaults to False
.
height
#
height: Number | None = None
The minimum height of the strut, as a multiple of size
.
See detailed explanation here: https://api.flutter.dev/flutter/painting/StrutStyle/height.html
leading
#
leading: Number | None = None
The amount of additional space to place between lines when rendering text.
Defaults to using the font-specified leading value.
size
#
size: Number | None = None
The size of text (in logical pixels) to use when getting metrics from the font.
Defaults to 14
.
weight
#
weight: FontWeight | None = None
The typeface thickness to use when calculating the strut.
Defaults to FontWeight.W_400
.
copy_with
#
copy_with(
*,
size: Number | None = None,
height: Number | None = None,
weight: FontWeight | None = None,
italic: bool | None = None,
font_family: str | None = None,
leading: Number | None = None,
force_strut_height: bool | None = None,
) -> StrutStyle
Returns a copy of this object with the specified properties overridden.