SizedBox.square constructor

const SizedBox.square({
  1. Key? key,
  2. required int dimension,
  3. Widget? child,
})

Creates a box with equal width and height set to dimension.

Implementation

const SizedBox.square({super.key, required int dimension, super.child})
    : width = dimension,
      height = dimension;