baseline method

Widget baseline({
  1. required TextBaseline baseline,
  2. required double baselineOffset,
  3. Key? key,
})

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

Implementation

Widget baseline({
  required TextBaseline baseline,
  required double baselineOffset,
  Key? key,
}) {
  return Baseline(
    key: key,
    baseline: baselineOffset,
    baselineType: baseline,
    child: this,
  );
}