call<T extends Object> method

EntityProvider<T> call<T extends Object>({
  1. required String type,
  2. required String? id,
  3. required EntityDecoder<T> fromGraph,
  4. EntityEncoder<T>? toGraph,
  5. bool enabled = true,
  6. bool subscribe = true,
})

Generated Riverpod family for a single normalized entity.

Implementation

EntityProvider<T> call<T extends Object>({
  required String type,
  required String? id,
  required EntityDecoder<T> fromGraph,
  EntityEncoder<T>? toGraph,
  bool enabled = true,
  bool subscribe = true,
}) => EntityProvider<T>._(
  argument: (
    type: type,
    id: id,
    fromGraph: fromGraph,
    toGraph: toGraph,
    enabled: enabled,
    subscribe: subscribe,
  ),
  from: this,
);