AirBuildCodePushConfig constructor

const AirBuildCodePushConfig({
  1. String channel = 'production',
  2. bool checkOnLaunch = true,
  3. bool checkOnResume = true,
  4. Duration checkInterval = const Duration(hours: 4),
  5. bool showDebugBar = false,
  6. bool disableOnPlayStoreInstalls = false,
  7. VoidCallback? onRestart,
  8. CodePushBannerBuilder? bannerBuilder,
  9. VoidCallback? onUpdateReady,
})

Creates overlay configuration. All fields have sensible defaults — const AirBuildCodePushConfig() checks production on launch, on resume, and every 4 hours.

Implementation

const AirBuildCodePushConfig({
  this.channel = 'production',
  this.checkOnLaunch = true,
  this.checkOnResume = true,
  this.checkInterval = const Duration(hours: 4),
  this.showDebugBar = false,
  this.disableOnPlayStoreInstalls = false,
  this.onRestart,
  this.bannerBuilder,
  this.onUpdateReady,
});