roundServiceFamily top-level property

ProviderFamily<RoundService, ServiceType> roundServiceFamily
final

Provides a RoundService for the service with the specified id

Implementation

final roundServiceFamily = Provider.family<RoundService, ServiceType>(
  (ref, serviceType) {
    switch (serviceType) {
      case OnDeviceService:
        return ref.watch(onDeviceRoundService);
      default:
        throw UnsupportedError('Unsupported service type');
    }
  },
  name: 'RoundServiceFamily',
  dependencies: [onDeviceRoundService, playerIDProvider],
);