getBoxesForRange method
Returns a list of text boxes that enclose the given text range.
The boxHeightStyle
and boxWidthStyle
parameters allow customization
of how the boxes are bound vertically and horizontally. Both style
parameters default to the tight option, which will provide close-fitting
boxes and will not account for any line spacing.
The boxHeightStyle
and boxWidthStyle
parameters must not be null.
See BoxHeightStyle and BoxWidthStyle for full descriptions of each option.
Implementation
List<TextBox> getBoxesForRange(int start, int end, {BoxHeightStyle boxHeightStyle = BoxHeightStyle.tight, BoxWidthStyle boxWidthStyle = BoxWidthStyle.tight}) {
assert(boxHeightStyle != null);
assert(boxWidthStyle != null);
return _getBoxesForRange(start, end, boxHeightStyle.index, boxWidthStyle.index);
}