TopBar constructor

const TopBar({
  1. Key? key,
  2. VoidCallback? onSettingsPressed,
  3. VoidCallback? onHelpPressed,
  4. VoidCallback? onFactoryResetDefaultTheme,
  5. List<SavedTheme> savedThemes = const [],
  6. String currentThemeName = 'Default',
  7. ValueChanged<SavedTheme>? onThemeSelected,
  8. bool isLoadingThemes = false,
  9. bool hasUnsavedChanges = false,
  10. VoidCallback? onSaveChanges,
})

Implementation

const TopBar({
  super.key,
  this.onSettingsPressed,
  this.onHelpPressed,
  this.onFactoryResetDefaultTheme,
  this.savedThemes = const [],
  this.currentThemeName = 'Default',
  this.onThemeSelected,
  this.isLoadingThemes = false,
  this.hasUnsavedChanges = false,
  this.onSaveChanges,
});