firstLineWidth property

  1. @visibleForTesting
double? get firstLineWidth

How wide the first line is drawn: its whole room where it is justified.

Implementation

@visibleForTesting
double? get firstLineWidth {
  final lines = _laid;
  if (lines == null) return null;
  final metrics = (lines.shown ?? lines.first).computeLineMetrics();
  return metrics.isEmpty ? null : metrics.first.width;
}