inlineAdvanceBefore method

double inlineAdvanceBefore(
  1. RenderObject marker
)

Implementation

double inlineAdvanceBefore(RenderObject marker) {
  if (!establishIFC || _inlineFormattingContext == null) return 0.0;

  // Ask IFC to compute advance for this descendant based on its owning inline element
  try {
    final double adv = _inlineFormattingContext!.inlineAdvanceForDescendant(marker);
    return adv;
  } catch (_) {
    // Fall back gracefully if anything goes wrong.
    return 0.0;
  }
}