onMeasured method

dynamic onMeasured(
  1. Size size, {
  2. dynamic data,
})

Implementation

onMeasured(Size size, {dynamic data}) {
  height ??= size.height;
  width ??= size.width;
  setState(() {});
}