CustomRain constructor
CustomRain({})
Implementation
CustomRain({
super.key,
this.numberOfDrops = 100,
this.fallSpeed = 1,
this.numLayers = 3,
this.dropHeight = 20,
this.dropWidth = 1,
this.trailStartFraction = 0.3,
this.layersDistance = 1,
this.child,
this.isInBackground = true,
this.hasTrail = false,
this.isPaused = false, required this.colors,
}) : assert(numLayers >= 1, "The minimum number of layers is 1"),
assert(colors.isNotEmpty, "The drop colors list cannot be empty"),
assert(layersDistance > 0,
"The distance between layers cannot be 0, set the number of layers to 1 at least");