SizedBoxModifier.fromSize constructor

SizedBoxModifier.fromSize({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. Size? size,
})

Creates a box with the specified size.

Implementation

SizedBoxModifier.fromSize({super.key, super.child, super.modifierKey, Size? size})
    : width = size?.width,
      height = size?.height;