height method

Widget height(
  1. double height, {
  2. Key? key,
  3. bool animate = false,
})

Implementation

Widget height(
  double height, {
  Key? key,
  bool animate = false,
}) =>
    animate
        ? _StyledAnimatedBuilder(
            key: key,
            builder: (animation) {
              return _AnimatedConstrainedBox(
                child: this,
                constraints: BoxConstraints.tightFor(height: height),
                duration: animation.duration,
                curve: animation.curve,
              );
            },
          )
        : ConstrainedBox(
            key: key,
            child: this,
            constraints: BoxConstraints.tightFor(height: height),
          );