6
answers
1
watching
305
views

``` 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

For unlimited access to Homework Help, a Homework+ subscription is required.

Avatar image
Liked by dragon2020 and 3 others

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Avatar image
Liked by dragon2020 and 2 others
Already have an account? Log in
Avatar image
Liked by dragon2020 and 2 others
Already have an account? Log in
Avatar image
Liked by dragon2020 and 3 others
Already have an account? Log in
Avatar image
Liked by dragon2020 and 3 others
Already have an account? Log in
Avatar image
Read by 2 people
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in