null safety
This commit is contained in:
@@ -24,7 +24,7 @@ class _ProfileCurrencyEditState extends State<ProfileCurrencyEdit> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
MainModel mainModel = Provider.of<MainModel>(context, listen: false);
|
||||
if (mainModel.user.preferCurrency == "MMK") {
|
||||
if (mainModel.user!.preferCurrency == "MMK") {
|
||||
_currency = Currency.MMK;
|
||||
} else {
|
||||
_currency = Currency.USD;
|
||||
@@ -77,7 +77,7 @@ class _ProfileCurrencyEditState extends State<ProfileCurrencyEdit> {
|
||||
onChanged: (Currency? value) {
|
||||
if(value != null)
|
||||
setState(() {
|
||||
_currency = value!;
|
||||
_currency = value;
|
||||
});
|
||||
},
|
||||
),
|
||||
@@ -96,7 +96,7 @@ class _ProfileCurrencyEditState extends State<ProfileCurrencyEdit> {
|
||||
onChanged: (Currency? value) {
|
||||
if(value != null)
|
||||
setState(() {
|
||||
_currency = value!;
|
||||
_currency = value;
|
||||
});
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user