asPositioned method

Positioned asPositioned({
  1. double? left,
  2. double? top,
  3. double? right,
  4. double? bottom,
  5. double? width,
  6. double? height,
})

转换为 Positioned,Stack 定位

Implementation

Positioned asPositioned({
  double? left,
  double? top,
  double? right,
  double? bottom,
  double? width,
  double? height,
}) {
  return Positioned(
    left: left,
    top: top,
    right: right,
    bottom: bottom,
    width: width,
    height: height,
    child: this,
  );
}