getCaption method

Widget getCaption(
  1. GoalTransactionsStyle style
)

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();
}