withoutProvider method

ModelSettings withoutProvider(
  1. String id
)

Removes the provider id; clears the selection if it was selected.

Implementation

ModelSettings withoutProvider(String id) => ModelSettings(
  useThirdParty: useThirdParty,
  providers: List.unmodifiable(providers.where((p) => p.id != id)),
  selectedProviderId: selectedProviderId == id ? null : selectedProviderId,
);