RenderBaseline constructor

RenderBaseline({RenderBox child, @required double baseline, @required TextBaseline baselineType })

Creates a RenderBaseline object.

The baseline and baselineType arguments must not be null.

Implementation

RenderBaseline({
  RenderBox child,
  @required double baseline,
  @required TextBaseline baselineType,
}) : assert(baseline != null),
     assert(baselineType != null),
     _baseline = baseline,
     _baselineType = baselineType,
     super(child);