top static method

Widget top({
  1. required Widget child,
  2. double? left = 0,
  3. double? right = 0,
  4. double? top = 0,
  5. double? bottom,
  6. double? height,
  7. double? width,
})

Implementation

static Widget top({
  required Widget child,
  double? left = 0,
  double? right = 0,
  double? top = 0,
  double? bottom,
  double? height,
  double? width,
}) {
  return Positioned(
    top: top,
    left: left,
    right: right,
    width: width,
    height: height,
    child: child,
  );
}