6
answers
1
watching
305
views
dragon2020Lv1
30 Dec 2022
``` State<MyApp> createState => _MyApp(); ``` Using the above code I get Error: A value of type '_MyApp' can't be returned from a function with return type 'State<MyApp>
How do I resolve this issue?
Using Flutter.
Originally my issue was _MyApp createState() => _MyApp(); but I got that Avoid using private types in public api. I was told to use this method - to resolve that issue
``` State<MyApp> createState => _MyApp(); ``` Using the above code I get Error: A value of type '_MyApp' can't be returned from a function with return type 'State<MyApp>
How do I resolve this issue?
Using Flutter.
Originally my issue was _MyApp createState() => _MyApp(); but I got that Avoid using private types in public api. I was told to use this method - to resolve that issue
Liked by dragon2020 and 3 others
31 Dec 2022
Liked by dragon2020 and 2 others
imranshkh84Lv8
31 Dec 2022
Already have an account? Log in
Liked by dragon2020 and 2 others
Liked by dragon2020 and 3 others
31 Dec 2022
Already have an account? Log in
Liked by dragon2020 and 3 others
31 Dec 2022
Already have an account? Log in
Read by 2 people
m7mdeljokerLv10
30 Dec 2022
Already have an account? Log in