childWidth property
childWidth defines the width of you child which is typically an Image Widget.
Note: childWidth < width always. This is because the ribbon width has has to be more than the Image Widget width in order to give an alluring effect to the ribbon shadow.
Implementation
final double childWidth;