ContentBuilder typedef

ContentBuilder = Widget Function(GeneratedPalette? palette, VoidCallback? onColorsChanged, GlobalKey<DualThemeViewState>? contentKey)

Builder function type for content that needs the current palette (Phase 8) palette - The current theme palette onColorsChanged - Callback when any color is modified in controls key - Typed GlobalKey to access DualThemeViewState for getting pending overrides

Implementation

typedef ContentBuilder = Widget Function(
  GeneratedPalette? palette,
  VoidCallback? onColorsChanged,
  GlobalKey<DualThemeViewState>? contentKey,
);