title: Flutter Riverpod: how to pass multiple arguments in family?
body: <p>I can pass one argument along with ProviderScope in Riverpod ChangeNotifierProvider family. But I need to pass more than one/multiple arguments/dependencies.
  For example I have to pass context to access other providers value via context.read(provider) and dependencies from UI widget, may be some more also.</p>
  <p>Example here:</p>
  <pre><code>final restaurantProvider = ChangeNotifierProvider.family(
    (ref, BuildContext context, Restaurant? restaurant) =&gt; RestaurantNotifier(
      context: context,
      restaurant: restaurant,
    ),
  );
  
  class RestaurantNotifier extends ChangeNotifier {
    RestaurantNotifier(
        {required BuildContext context, required Restaurant? restaurant}) {
      getPlaceMark(restaurant);
      checkIsSaved(context, restaurant!.id);
    }
  
    getPlaceMark(Restaurant? restaurant) async {
      if (restaurant!.latitude != null &amp;&amp; restaurant.longitude != null) {
        List&lt;Placemark&gt; placemarkData = await LocationHelper.getPlaceMark(
          lat: double.tryParse(restaurant.latitude!)!,
          long: double.tryParse(restaurant.longitude!)!,
        );
        placemark = placemarkData[0];
      }
    }
  
    checkIsSaved(BuildContext context, int? id) {
      final savedRestaurantsId = context.read(savedRestaurantsIdProvider.state);
      isSaved = savedRestaurantsId.contains(id);
      notifyListeners();
    }
  }
  </code></pre>