alignTextTop method

WidgetSpan alignTextTop({
  1. TextBaseline baseline = TextBaseline.alphabetic,
})

Aligns the top of the element with the top of the parent element's font.

Matches Bootstrap's .align-text-top class.

Implementation

WidgetSpan alignTextTop({TextBaseline baseline = TextBaseline.alphabetic}) => WidgetSpan(
      alignment: PlaceholderAlignment.aboveBaseline,
      baseline: baseline,
      child: this,
    );