please help me the app is not building
--verbosity=error package:mobile_pos/main.dart
[+12505 ms] [+13047 ms] lib/Screens/Sales/add_sales.dart:1090:52: Error: The argument type 'SalesTransactionModel?' can't be assigned to the parameter type 'SalesTransactionModel' because
'SalesTransactionModel?' is nullable and 'SalesTransactionModel' isn't.
[ +3 ms] [ +2 ms] - 'SalesTransactionModel' is from 'package:mobile_pos/model/sale_transaction_model.dart' ('lib/model/sale_transaction_model.dart').
[ ] [ ] saleTransaction: saleData,
[ ] [ ] ^
[+18701 ms] [+18672 ms] Persisting file store
[ ] [ +65 ms] Done persisting file store
[ +93 ms] [ +30 ms] Target kernel_snapshot_program failed: Exception
[ ] #0 KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:285:7)
[ ] <asynchronous suspension>
[ +1 ms] #1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:873:9)
[ ] <asynchronous suspension>
--verbosity=error package:mobile_pos/main.dart
[+12505 ms] [+13047 ms] lib/Screens/Sales/add_sales.dart:1090:52: Error: The argument type 'SalesTransactionModel?' can't be assigned to the parameter type 'SalesTransactionModel' because
'SalesTransactionModel?' is nullable and 'SalesTransactionModel' isn't.
[ +3 ms] [ +2 ms] - 'SalesTransactionModel' is from 'package:mobile_pos/model/sale_transaction_model.dart' ('lib/model/sale_transaction_model.dart').
[ ] [ ] saleTransaction: saleData,
[ ] [ ] ^
[+18701 ms] [+18672 ms] Persisting file store
[ ] [ +65 ms] Done persisting file store
[ +93 ms] [ +30 ms] Target kernel_snapshot_program failed: Exception
[ ] #0 KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:285:7)
[ ] <asynchronous suspension>
[ +1 ms] #1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:873:9)
[ ] <asynchronous suspension>
Attachments
Reacted by: