getVxRound method
Get the Vx Round type whether VxBadgeType.point or VxBadgeType.ellipse or VxBadgeType.round
Implementation
Widget getVxRound() {
if (type == VxBadgeType.point) {
return VxRound(
type: VxRoundType.point,
size: size,
color: color,
);
} else if (type == VxBadgeType.round) {
return VxRound(
type: VxRoundType.round,
color: color,
size: size,
child: optionalWidget ??
Text(
getNumber(),
style: getTextStyle(),
),
);
} else {
return VxRound(
type: VxRoundType.ellipse,
color: color,
size: size,
child: optionalWidget ??
Text(
getNumber(),
style: getTextStyle(),
),
);
}
}