TornPaper constructor

TornPaper({
  1. Widget child = const SizedBox.shrink(),
  2. List<TornedSide> tornedSides = const [],
  3. int seed = 369,
  4. int stepWidth = 8,
  5. Color tornColor = Colors.black,
  6. double tornWidth = 1.0,
  7. double tornDeepness = 5.0,
  8. Color backgroundColor = Colors.white,
  9. bool hasNoise = false,
  10. Color noiseColor = Colors.black,
  11. bool hasBorder = true,
  12. Offset shadowOffset = const Offset(8.0, 8.0),
  13. Color shadowColor = Colors.black,
  14. bool hasShadow = true,
  15. Key? key,
})

Constructor of TornPaper

Implementation

TornPaper(
    {this.child = const SizedBox.shrink(),
    this.tornedSides = const [],
    this.seed = 369,
    this.stepWidth = 8,
    this.tornColor = Colors.black,
    this.tornWidth = 1.0,
    this.tornDeepness = 5.0,
    this.backgroundColor = Colors.white,
    this.hasNoise = false,
    this.noiseColor = Colors.black,
    this.hasBorder = true,
    this.shadowOffset = const Offset(8.0, 8.0),
    this.shadowColor = Colors.black,
    this.hasShadow = true,
    Key? key})
    : assert(stepWidth > 0), assert(tornWidth > 0), super(key: key);