FCInlineSpanExt extension
Methods
-
initialFontSize()
→ double?
-
Returns the
style?.fontSize
of the first TextSpan
with text, or null
if none.
-
initialLineHeightScale()
→ double?
-
Returns the
style?.height
of the first TextSpan
with text, or null
if none.
-
splitAtCharacterIndex(int index)
→ List<InlineSpan>
-
Splits this span at the given character
index
and returns a list of one or two spans.
If index
is zero, or if index
is greater than the number of characters in this span,
a list containing just this span is returned. If this span was split, a list of two spans
is returned, containing the two new spans.