Created
February 17, 2021 20:12
-
-
Save Abdulsametileri/39b1f74a9917734ff648447d0b35fda8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:mobx/mobx.dart'; | |
import 'invoice_model.dart'; | |
part 'ex_invoice_model.g.dart'; | |
class ExInvoiceModel extends _ExInvoiceModel with _$ExInvoiceModel { | |
ExInvoiceModel(InvoiceModel invoice) : super(invoice); | |
} | |
abstract class _ExInvoiceModel extends InvoiceModel with Store { | |
_ExInvoiceModel(InvoiceModel invoice) : super(amount: invoice.amount, date: invoice.date, id: invoice.id); | |
@observable | |
bool isSelected = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment