top method
Calculation of the top position on the badge
If ZeroBadgePosition is top, it will return 0, otherwise it will return null
Implementation
double? top(double childPadding) =>
this == topLeft || this == topRight ? -(childPadding / 2) : null;