Baseline constructor Null safety

const Baseline(
  1. {Key? key,
  2. required double baseline,
  3. required TextBaseline baselineType,
  4. Widget? child}
)

Creates a widget that positions its child according to the child's baseline.

The baseline and baselineType arguments must not be null.

Implementation

const Baseline({
  super.key,
  required this.baseline,
  required this.baselineType,
  super.child,
}) : assert(baseline != null),
     assert(baselineType != null);