springBootStarterFlutterDebugDragAutoConfiguration top-level property

  1. @AutoConfigurationModule(build: AutoConfigurationBuild('spring.flutter.debug.drag.enabled', whenMissing: BuildInclusion.never))
BeanModule springBootStarterFlutterDebugDragAutoConfiguration
final

Dragging the debug overlays (debugOverlayDrag): a mouse drags one at once, a finger after a long press; dropped, it joins the nearest corner or stays where it is (spring.flutter.debug.overlays.drag.snap), kept for the next start with remember. The generator puts this module into the app only with spring.flutter.debug.drag.enabled: true: without it there is no code to drag.

Implementation

@AutoConfigurationModule(
  build: AutoConfigurationBuild(
    'spring.flutter.debug.drag.enabled',
    whenMissing: BuildInclusion.never,
  ),
)
final BeanModule springBootStarterFlutterDebugDragAutoConfiguration =
    BeanModule('springBootStarterFlutterDebugDragAutoConfiguration', [
      BeanDefinition<DebugOverlayDrag>(
        name: 'debugOverlayDrag',
        types: const [
          DebugOverlayDrag,
          DebugOverlayPlacement,
          ChangeNotifier,
          Listenable,
        ],
        source: _debugSource,
        conditions: [_debugFeatureOn('drag')],
        create: (r) {
          final drag = r.dependency<FlutterDebugProperties>().overlays.drag;
          return DebugOverlayDrag(
            snap: drag.snap,
            places: drag.remember
                ? FileDebugOverlayPlaces(r.dependency<FileTemplate>())
                : null,
          );
        },
      ),
    ]);