leftWidget method
Implementation
Widget leftWidget(int index, int max) {
// print("index: $index, max: $max, max1: ${(widget.payload?.prices?.length ?? 0)}");
String label = '결제정보';
if(index > 0 && index < max - 1) label = widget.payload!.prices![index-1].name ?? '';
else if(index == max - 1) { label = '총 결제금액'; }
return Text(label);
}