setupMoveToPositionAlongThePath method

void setupMoveToPositionAlongThePath({
  1. Color? pathLineColor,
  2. Color? barriersCalculatedColor,
  3. double pathLineStrokeWidth = 4,
  4. bool showBarriersCalculated = false,
  5. bool gridSizeIsCollisionSize = false,
})

Implementation

void setupMoveToPositionAlongThePath({
  /// Use to set line path color
  Color? pathLineColor,
  Color? barriersCalculatedColor,

  /// Use to set line path width
  double pathLineStrokeWidth = 4,

  /// Use to debug and show area collision calculated
  bool showBarriersCalculated = false,

  /// If `false` the algorithm use map tile size with base of the grid. if true this use collision size of the component.
  bool gridSizeIsCollisionSize = false,
}) {
  _paintShowBarriers.color =
      barriersCalculatedColor ?? Color(0xFF2196F3).withOpacity(0.5);
  this._showBarriers = showBarriersCalculated;
  _pathLineColor = pathLineColor ?? Color(0xFF40C4FF).withOpacity(0.5);
  _pathLineStrokeWidth = pathLineStrokeWidth;
  _gridSizeIsCollisionSize = gridSizeIsCollisionSize;
}