SizedBoxModifier.square constructor

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

Creates a box whose width and height are equal.

Implementation

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