title: Shared code that does not fit in controller (StateNotifier) or repository
body: <p>I have a Flutter mobile app and I am using RiverPod for state management.  I often find myself in need of the same code inside couple of widgets for example to sign in or something else.  The code will not be suitable to place in the controller or the repository since it has calls to show dialog and Navigator.pop.  Where should I place shared code that is not suitable inside of repository or controller (StateNotifier).</p>
  <p>Does anyone has an idea?
  Thanks</p>