PatternBackground constructor

const PatternBackground({
  1. Key? key,
  2. required Widget child,
  3. Color patternColor = const Color(0x20FFFFFF),
  4. double patternSize = 4.0,
  5. double patternSpacing = 20.0,
  6. PatternType patternType = PatternType.dot,
  7. Color backgroundColor = Colors.transparent,
})

Implementation

const PatternBackground({
  super.key,
  required this.child,
  this.patternColor = const Color(0x20FFFFFF), // semi-transparent
  this.patternSize = 4.0,
  this.patternSpacing = 20.0,
  this.patternType = PatternType.dot,
  this.backgroundColor = Colors.transparent,
});