folderModelStateApplies function

bool folderModelStateApplies({
  1. required bool modelExplicit,
  2. required bool providerExplicit,
  3. required bool baseUrlExplicit,
  4. required bool hasProviderPreconfig,
})

Whether the saved per-folder state may override the global config for this launch: only when the user pinned nothing explicitly (flags or the FA_PROVIDER_* env preconfig are per-launch declarations and always win).

Implementation

bool folderModelStateApplies({
  required bool modelExplicit,
  required bool providerExplicit,
  required bool baseUrlExplicit,
  required bool hasProviderPreconfig,
}) =>
    !modelExplicit &&
    !providerExplicit &&
    !baseUrlExplicit &&
    !hasProviderPreconfig;