Replies: 1 comment 2 replies
-
That is not supported. You can use mixins instead |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
A lot of my controllerProviders (AsyncNotfiers) which perform data mutations follow the same patterns and it's getting pretty repetitive.
I was looking for a way to introduce inheritance to solve the issue.
Problem
The problem is that I cannot seem to find a way to extend AsyncNotifiers (with a provider still being created for the subclass) when code gen is being used.
Example of desired outcome
Parent AsyncNotifier:
Child AsyncNotifier:
in myy Widgets:
ref.watch(childNotifierProvider);
Beta Was this translation helpful? Give feedback.
All reactions