in this below code _invoiceInformation in first initialize is null and i'm trying to use dart null safe to manage that in my flutter applications
in this code although i used ? operation i still get error:
Error:
RangeError (index): Index out of range: no indices are valid: 0
what i want to try:
_invoiceInformation = Hive.box<InvoiceInformation>('invoice_information');
_province.text=_invoiceInformation?.getAt(0)?.province??'';