Replies: 1 comment 1 reply
-
If you mean: MyWidget(
onPressed: () => use(something).thing(),
) Ideally don’t do that. Instead, do: final thing = use(something).thing;
MyWidget(
onPressed: thing,
) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I suppose it is not possible to use use a
WidgetHandle
on these kind of async events. So I can only think on usingCapsuleContainer.read
.Is that right?
UPDATE: I can think too on save a controller on a class property.
Beta Was this translation helpful? Give feedback.
All reactions