positioned method

Positioned positioned({
  1. double? left,
  2. double? top,
  3. double? right,
  4. double? bottom,
})

Implementation

Positioned positioned({
  double? left,
  double? top,
  double? right,
  double? bottom,
}) {
  if (this is Positioned) {
    final thisWidget = this as Positioned;
    return Positioned(
      child: thisWidget.child,
      left: left ?? thisWidget.left,
      right: right ?? thisWidget.right,
      bottom: bottom ?? thisWidget.bottom,
      top: top ?? thisWidget.top,
    );
  }
  return Positioned(
      left: left, top: top, right: right, bottom: bottom, child: this);
}