positioned method

Widget positioned({
  1. Key? key,
  2. double? left,
  3. double? top,
  4. double? right,
  5. double? bottom,
  6. double? width,
  7. double? height,
  8. bool animate = false,
})

Implementation

Widget positioned({
  Key? key,
  double? left,
  double? top,
  double? right,
  double? bottom,
  double? width,
  double? height,
  bool animate = false,
}) =>
    animate
        ? _StyledAnimatedBuilder(
            key: key,
            builder: (animation) {
              return AnimatedPositioned(
                child: this,
                duration: animation.duration,
                curve: animation.curve,
                left: left,
                top: top,
                right: right,
                bottom: bottom,
                width: width,
                height: height,
              );
            },
          )
        : Positioned(
            key: key,
            child: this,
            left: left,
            top: top,
            right: right,
            bottom: bottom,
            width: width,
            height: height,
          );