addUpperGoldLabels method Null safety

  1. @override
double addUpperGoldLabels(
  1. List<Widget> result,
  2. Rect pos,
  3. {required double th,
  4. required double tw,
  5. required double bh,
  6. required double bw}
)
override

Implementation

@override
double addUpperGoldLabels(List<Widget> result, Rect pos,
    {required double th,
    required double tw,
    required double bh,
    required double bw}) {
  double y = pos.top;
  result.add(screen.box(
      Rect.fromLTRB(pos.left + 1 * tw - 0.05, y + 2 * th - 0.155,
          pos.left + 4 * tw + bw + 0.05, y + 2 * th + 0.065),
      CustomPaint(
          painter: UpperLabel('CLEAR', fTextSmallLabelStyle,
              height * (0.065 + 0.155) / bh))));
  return shiftDownTweak;
}