Baseline constructor

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.


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