getBillDetailList static method

List<UserDetailData> getBillDetailList(
  1. BuildContext context, {
  2. required double dueTotal,
  3. required double paidTotal,
})

Implementation

static List<UserDetailData> getBillDetailList(BuildContext context,
    {required double dueTotal, required double paidTotal}) {
  return <UserDetailData>[
    UserDetailData(
      title: "Total amount",
      value: usdWithSignFormat(context).format(paidTotal + dueTotal),
    ),
    UserDetailData(
      title: "Amount paid",
      value: usdWithSignFormat(context).format(paidTotal),
    ),
    UserDetailData(
      title: "Amount due",
      value: usdWithSignFormat(context).format(dueTotal),
    ),
  ];
}