Dimension constructor

const Dimension({
  1. Key? key,
  2. BuildContext? context,
  3. required Widget builder(
    1. double height,
    2. double width
    ),
})

Dimension is a Builder widget that gives the height and width derived from the provided BuildContext. If the context is null, then this will give the height and width of its own context as in the widget tree

Implementation

const Dimension({
  Key? key,
  this.context,
  required this.builder,
}) : super(key: key);