Home > Software design >  Add a return at the end of the FutureBuilder
Add a return at the end of the FutureBuilder

Time:10-23

I have a Future here but says that needs to add a return but I don't know how that works hehe

The body might complete normally, causing 'null' to be returned, but the return type, 'Widget', is a potentially non-nullable type.
Try adding either a return or a throw statement at the end.

That's the error that show's up when I wrote this code

  • Related