null safety

This commit is contained in:
Phaung Phaung
2021-09-10 16:48:20 +06:30
parent 52fe4b4568
commit 0f84fec2f7
12 changed files with 103 additions and 106 deletions

View File

@@ -113,7 +113,7 @@ class _InvoiceEditorState extends State<InvoiceEditor> {
});
}
List<Discount> discounts = [];
List<Discount?> discounts = [];
_loadDiscount() async {
DiscountModel discountModel =
Provider.of<DiscountModel>(context, listen: false);