LazyCanvasController constructor
LazyCanvasController({
- bool debug = false,
- Offset? buildCacheExtent,
- Size hashCellSize = const Size(100, 100),
- Duration defaultAnimationDuration = const Duration(milliseconds: 300),
- bool inertiaEnabled = true,
- double inertiaFrictionCoefficient = 0.0000135,
- CanvasBackground background = const DotGridBackground(),
- bool useIdsFromArgs = false,
- OnWidgetEnteredRender? onWidgetEnteredRender,
- OnWidgetExitedRender? onWidgetExitedRender,
- PointerSignalEventListener? rawPointerSignalListener,
- PointerDownEventListener? rawPointerDownListener,
- PointerMoveEventListener? rawPointerMoveListener,
- PointerUpEventListener? rawPointerUpListener,
- PointerCancelEventListener? rawPointerCancelListener,
Implementation
LazyCanvasController({
this.debug = false,
Offset? buildCacheExtent,
Size hashCellSize = const Size(100, 100),
this.defaultAnimationDuration = const Duration(milliseconds: 300),
this.inertiaEnabled = true,
this.inertiaFrictionCoefficient = 0.0000135,
this.background = const DotGridBackground(),
this.useIdsFromArgs = false,
this.onWidgetEnteredRender,
this.onWidgetExitedRender,
this.rawPointerSignalListener,
this.rawPointerDownListener,
this.rawPointerMoveListener,
this.rawPointerUpListener,
this.rawPointerCancelListener,
}) : assert(inertiaFrictionCoefficient > 0 && inertiaFrictionCoefficient < 1),
_spatialHash = SpatialHashing<CanvasChildId>(cellSize: hashCellSize),
_buildCacheExtent = buildCacheExtent;