RenderBaseline constructor Null safety

RenderBaseline(
  1. {RenderBox? child,
  2. required double baseline,
  3. 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);