Measurer constructor

const Measurer({
  1. Key? key,
  2. OnMeasure? onMeasure,
  3. OnPaintBoundsChanged? onPaintBoundsChanged,
  4. OnConstraintsChanged? onConstraintsChanged,
  5. required Widget child,
})

Create a new measurer.

The given onMeasure callback is called after each new rendering of its child and provides its layout size.

The given onPaintBoundsChanged callback is called after each new rendering of its child and provides its paint bounds on the screen.

Implementation

const Measurer({
  Key? key,
  this.onMeasure,
  this.onPaintBoundsChanged,
  this.onConstraintsChanged,
  required Widget child,
}) : super(key: key, child: child);