getCenterChild method
Implementation
Widget getCenterChild() {
if (widget.scrollAxis == Axis.horizontal) {
return Container(width: screenWidth! * widget.ratioOfBlankToScreen);
} else {
return Container(height: screenHeight! * widget.ratioOfBlankToScreen);
}
}