LazyCanvasController constructor

LazyCanvasController({
  1. bool debug = false,
  2. Offset? buildCacheExtent,
  3. Size hashCellSize = const Size(100, 100),
  4. Duration defaultAnimationDuration = const Duration(milliseconds: 300),
  5. bool inertiaEnabled = true,
  6. double inertiaFrictionCoefficient = 0.0000135,
  7. CanvasBackground background = const DotGridBackground(),
  8. bool useIdsFromArgs = false,
  9. OnWidgetEnteredRender? onWidgetEnteredRender,
  10. OnWidgetExitedRender? onWidgetExitedRender,
  11. PointerSignalEventListener? rawPointerSignalListener,
  12. PointerDownEventListener? rawPointerDownListener,
  13. PointerMoveEventListener? rawPointerMoveListener,
  14. PointerUpEventListener? rawPointerUpListener,
  15. 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;