Action bloc return value throwing error

Hi,

When I try to use a return value on bloc action, I get this error on compilation :

Launching lib/main.dart on Web Server in debug mode... Waiting for connection from debug service on Web Server...       lib/actions/actions.dart:64:7: Error: A value must be explicitly returned from a non-void async function.       return;       ^ Waiting for connection from debug service on Web Server...         65.8s Failed to compile application.

Here is my return value definition :

Here is the return of the value in the action bloc :

I don't understand what I'm doing wrong, any hints ?


More generally, I come from bubble and I find it very difficult to be efficient on FF as most of my time is spent on debugging misterious bugs as this one ? I always struggle building even thought I don't use custom function, etc... Is there any thing I should read to avoid that ?

1
2 replies