SizedBox.square constructor

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

Creates a box whose width and height are equal.

Implementation

const SizedBox.square({super.key, this.child, double? dimension})
    : width = dimension,
      height = dimension;