AutoUpdateSettings.allDisabled constructor

AutoUpdateSettings.allDisabled({
  1. void onAutoUpdateComplete(
    1. ContentType type,
    2. GemError error
    )?,
})

Factory constructor to create an instance where all update options are disabled.

Implementation

factory AutoUpdateSettings.allDisabled({
  void Function(ContentType type, GemError error)? onAutoUpdateComplete,
}) {
  return AutoUpdateSettings(
    isAutoUpdateForRoadMapEnabled: false,
    isAutoUpdateForViewStyleHighResEnabled: false,
    isAutoUpdateForViewStyleLowResEnabled: false,
    isAutoUpdateForResourcesEnabled: false,
    onAutoUpdateComplete: onAutoUpdateComplete,
  );
}