getBillDetailList static method
List<UserDetailData>
getBillDetailList(
- BuildContext context, {
- required double dueTotal,
- 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),
),
];
}