SnowConfig class

Configuration of the Snow.

Inheritance
Annotations
  • @freezed

Constructors

SnowConfig({@Default(20) int count, @Default(20.0) double size, @Default(Color.fromARGB(179, 255, 255, 255)) Color color, @JsonKey(ignore: true) @Default(Icons.ac_unit_rounded) IconData icon, @JsonKey(ignore: true) Widget? widgetSnowflake, @Default(90.0) double areaXStart, @Default(230.0) double areaXEnd, @Default(200.0) double areaYStart, @Default(540.0) double areaYEnd, @Default(20.0) double waveRangeMin, @Default(110.0) double waveRangeMax, @Default(5) int waveMinSec, @Default(20) int waveMaxSec, @Default(Curves.easeInOutSine) @JsonKey(ignore: true) Curve waveCurve, @Default(Curves.easeInCirc) @JsonKey(ignore: true) Curve fadeCurve, @Default(10) int fallMinSec, @Default(60) int fallMaxSec})
const
factory
SnowConfig.fromJson(Map<String, dynamic> json)
factory

Properties

areaXEnd double
The X-axis zone where the snowflakes end to fall (in pixels).
no setterinherited
areaXStart double
The X-axis zone where the snowflakes start to fall (in pixels).
no setterinherited
areaYEnd double
The Y-axis zone where the snowflakes end to fall (in pixels).
no setterinherited
areaYStart double
The Y-axis zone where the snowflakes start to fall (in pixels).
no setterinherited
color Color
Snowflake color.
no setterinherited
copyWith → $SnowConfigCopyWith<SnowConfig>
no setterinherited
count int
Number of snowflakes.
no setterinherited
fadeCurve Curve
An parametric animation easing curve. Specify how fast the snowflakes will disappear.
no setterinherited
fallMaxSec int
Maximum snowflake fall time (in seconds).
no setterinherited
fallMinSec int
Minimum snowflake fall time (in seconds).
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
icon IconData
Snowflake icon. You can use a custom widget widgetSnowflake.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
Snowflake size.
no setterinherited
waveCurve Curve
An parametric animation easing curve. Specify to create a wave effect.
no setterinherited
waveMaxSec int
Maximum wave effect duration time (in seconds).
no setterinherited
waveMinSec int
Minimum wave effect duration time (in seconds).
no setterinherited
waveRangeMax double
Maximum deviation from the direction of snowflake fall (in pixels).
no setterinherited
waveRangeMin double
Minimum deviation from the direction of snowflake fall (in pixels).
no setterinherited
widgetSnowflake Widget?
Specify the snowflake widget. In this case, the fields sizeSnowflake, snowColor and iconDataSnowflake be ignored.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited