TornPaper constructor
TornPaper({
- Widget child = const SizedBox.shrink(),
- List<
TornedSide> tornedSides = const [], - int seed = 369,
- int stepWidth = 8,
- Color tornColor = Colors.black,
- double tornWidth = 1.0,
- double tornDeepness = 5.0,
- Color backgroundColor = Colors.white,
- bool hasNoise = false,
- Color noiseColor = Colors.black,
- bool hasBorder = true,
- Offset shadowOffset = const Offset(8.0, 8.0),
- Color shadowColor = Colors.black,
- bool hasShadow = true,
- 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);