ImageParams constructor

ImageParams({
  1. required String path,
  2. required Size size,
  3. double imagePositionFactor = 0.4,
  4. double repeatCountPerLevel = 0.5,
  5. Side side = Side.BOTH,
})

Implementation

ImageParams({
  required this.path,
  required this.size,
  this.imagePositionFactor = 0.4,
  this.repeatCountPerLevel = 0.5,
  this.side = Side.BOTH,
})  : assert(imagePositionFactor >= 0 && imagePositionFactor <= 1,
          "Image Position factor should be between 0 and 1"),
      assert(repeatCountPerLevel >= 0,
          "repeatPerLevel parameter should be positive");