async_redux icon indicating copy to clipboard operation
async_redux copied to clipboard

error in docs

Open simonkenyongithub opened this issue 8 months ago • 0 comments

in the documentation (https://pub.dev/packages/async_redux#giving-better-error-messages) the code: ` class LogoutAction extends ReduxAction<AppState> {

@override Future<AppState> reduce() async { ... }

@override Object wrapError(error) => LogoutError("Logout failed.", cause: error); }`

is incorrect. the wrapError has a second parameter.

simonkenyongithub avatar Jun 13 '24 12:06 simonkenyongithub