AutoUpdateSettings.allEnabled constructor

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

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

Implementation

factory AutoUpdateSettings.allEnabled({
  void Function(ContentType type, GemError error)? onAutoUpdateComplete,
}) {
  return AutoUpdateSettings(
    isAutoUpdateForHumanVoiceEnabled: true,
    isAutoUpdateForComputerVoiceEnabled: true,
    isAutoUpdateForCarModelEnabled: true,
    onAutoUpdateComplete: onAutoUpdateComplete,
  );
}