getCaption method
Implementation
Widget getCaption(GoalTransactionsStyle style) {
if (isPending) {
return HubbleText(
'Pending',
style: style.texts.pendingTag,
);
} else if (isFailed) {
return HubbleText('Failed', style: style.texts.failedTag);
}
return const SizedBox();
}