Skip to content

Instantly share code, notes, and snippets.

@Abdulsametileri
Created February 17, 2021 20:12
Show Gist options
  • Save Abdulsametileri/39b1f74a9917734ff648447d0b35fda8 to your computer and use it in GitHub Desktop.
Save Abdulsametileri/39b1f74a9917734ff648447d0b35fda8 to your computer and use it in GitHub Desktop.
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