getBudgetDetailList static method
List<UserDetailData>
getBudgetDetailList(
- BuildContext context, {
- required double capTotal,
- required double usedTotal,
Implementation
static List<UserDetailData> getBudgetDetailList(BuildContext context,
{required double capTotal, required double usedTotal}) {
return <UserDetailData>[
UserDetailData(
title: "Total cap",
value: usdWithSignFormat(context).format(capTotal),
),
UserDetailData(
title: "Amount used",
value: usdWithSignFormat(context).format(usedTotal),
),
UserDetailData(
title: "Amount left",
value: usdWithSignFormat(context).format(capTotal - usedTotal),
),
];
}