EffectLine({Texture texture: null, TransferMode transferMode: TransferMode.dstOver, List<Point> points, EffectLineWidthMode widthMode: EffectLineWidthMode.linear, double minWidth: 10.0, double maxWidth: 10.0, double widthGrowthSpeed: 0.0, EffectLineAnimationMode animationMode: EffectLineAnimationMode.none, double scrollSpeed: 0.1, double scrollStart: 0.0, double fadeDuration: null, double fadeAfterDelay: null, double textureLoopLength: null, bool simplify: true, ColorSequence colorSequence })

Creates a new EffectLine with the specified parameters. Only the texture parameter is required, all other parameters are optional.

Source

EffectLine({
  this.texture: null,
  this.transferMode: TransferMode.dstOver,
  List<Point> points,
  this.widthMode : EffectLineWidthMode.linear,
  this.minWidth: 10.0,
  this.maxWidth: 10.0,
  this.widthGrowthSpeed: 0.0,
  this.animationMode: EffectLineAnimationMode.none,
  this.scrollSpeed: 0.1,
  double scrollStart: 0.0,
  this.fadeDuration: null,
  this.fadeAfterDelay: null,
  this.textureLoopLength: null,
  this.simplify: true,
  ColorSequence colorSequence
}) {
  if (points == null)
    this.points = <Point>[];
  else
    this.points = points;

  _colorSequence = colorSequence;
  if (_colorSequence == null) {
    _colorSequence = new ColorSequence.fromStartAndEndColor(
      const Color(0xffffffff),
      const Color(0xffffffff)
    );
  }

  _offset = scrollStart;

  _painter = new TexturedLinePainter(points, _colors, _widths, texture);
  _painter.textureLoopLength = textureLoopLength;
}