SizedBoxResponsive constructor

SizedBoxResponsive({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. Widget? child,
})

Creates a fixed size box. The width and height parameters can be null to indicate that the size of the box should not be constrained in the corresponding dimension.

Implementation

SizedBoxResponsive({Key? key, double? width, double? height, Widget? child})
    : super(
        key: key,
        child: child,
        width: width == null ? null : width.w.toDouble(),
        height: height == null ? null : height.h.toDouble(),
      );