SizedBox.square constructor

SizedBox.square({
  1. Widget? child,
  2. double? dimension,
})

Creates a box whose width and height are equal.

Implementation

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