springBootStarterFlutterDebugTimelineAutoConfiguration top-level property

  1. @AutoConfigurationModule(build: AutoConfigurationBuild('spring.flutter.debug.timeline.enabled'))
BeanModule springBootStarterFlutterDebugTimelineAutoConfiguration
final

The timeline of the start and the observations (debugTimeline), on and off by the action debug.timeline (⌘⇧L, or six quick taps and a seventh held): a pill in the dock, the full view over the app when it is tapped, and its tab in the debug panel. The timelineObservations bean is an ObservationHandler, so it gets every observation. The generator puts this module into the app by spring.flutter.debug.timeline.enabled: true always, false never (no code), not set debug and profile builds only. With it, each bean's creation is measured too.

Implementation

@AutoConfigurationModule(
  build: AutoConfigurationBuild('spring.flutter.debug.timeline.enabled'),
)
final BeanModule springBootStarterFlutterDebugTimelineAutoConfiguration =
    BeanModule('springBootStarterFlutterDebugTimelineAutoConfiguration', [
      BeanDefinition<TimelineObservations>(
        name: 'timelineObservations',
        types: const [
          TimelineObservations,
          ObservationHandler,
          ChangeNotifier,
          Listenable,
        ],
        source: _debugSource,
        conditions: [_debugFeatureOn('timeline')],
        create: (_) => TimelineObservations(),
      ),
      BeanDefinition<DebugTimeline>(
        name: 'debugTimeline',
        types: const [
          DebugTimeline,
          ChangeNotifier,
          Listenable,
          ShortcutHandler,
          KeyedShortcutHandler,
          DebugOverlay,
        ],
        source: _debugSource,
        conditions: [_debugFeatureOn('timeline')],
        create: (r) => DebugTimeline(
          // The SpringApplicationWidget's; an app without it has no stages.
          trace:
              r.optionalDependency<SplashTrace>() ??
              SplashTrace(SplashStages(), log: false),
          observations: r.dependency<TimelineObservations>(),
          position: r.dependency<FlutterDebugProperties>().timeline.position,
        ),
      ),
      BeanDefinition<DebugTimelineCustomizer>(
        name: 'debugTimelineCustomizer',
        types: const [
          DebugTimelineCustomizer,
          FlutterAppCustomizer,
          Ordered,
        ],
        source: _debugSource,
        conditions: [_debugFeatureOn('timeline')],
        create: (r) => DebugTimelineCustomizer(r.dependency<DebugTimeline>()),
      ),
      BeanDefinition<DebugTimelineSection>(
        name: 'debugTimelineSection',
        types: const [DebugTimelineSection, DebugPanelSection, Ordered],
        source: _debugSource,
        conditions: [_debugFeatureOn('timeline')],
        create: (r) => DebugTimelineSection(r.dependency<DebugTimeline>()),
      ),
      ..._debugDock,
    ]);