topSet method
Implementation
Positioned topSet(double value) {
if (this is Positioned) {
final thisWidget = this as Positioned;
return Positioned(
child: thisWidget.child,
left: thisWidget.left,
right: thisWidget.right,
bottom: thisWidget.bottom,
top: value,
);
}
return Positioned(top: value, child: this);
}