textRectFromLine method

TextRect textRectFromLine(
  1. LineMetrics line,
  2. Color? color,
  3. double leftPosition,
  4. double topPosition,
  5. bool isIcon,
)

Implementation

TextRect textRectFromLine(
  LineMetrics line,
  Color? color,
  double leftPosition,
  double topPosition,
  bool isIcon,
) {
  return TextRect(
    color: color,
    leftPosition: leftPosition,
    topPosition: topPosition,
    lineLeft: line.left,
    lineDescent: line.descent,
    lineWidth: line.width,
    lineAscent: line.height - line.descent,
    isIcon: isIcon,
  );
}