enterPos method Null safety

  1. @override
Rect enterPos(
  1. Rect pos,
  2. {required double th,
  3. required double tw,
  4. required double bh,
  5. required double bw}
)
override

Implementation

@override
Rect enterPos(Rect pos,
        {required double th,
        required double tw,
        required double bh,
        required double bw}) =>
    Rect.fromLTWH(pos.left + tw - 0.1, 0.28 + pos.top + 5 * th, bw, bh + th);