RainConfig class

Configuration of the Rain.

Inheritance
Annotations
  • @freezed

Constructors

RainConfig({@Default(10) int count, @Default(12.0) double lengthDrop, @Default(4.0) double widthDrop, @Default(Color.fromARGB(153, 120, 144, 156)) Color color, @Default(true) bool isRoundedEndsDrop, @JsonKey(ignore: true) Widget? widgetRainDrop, @Default(500) int fallRangeMinDurMill, @Default(1500) int fallRangeMaxDurMill, @Default(120.0) double areaXStart, @Default(190.0) double areaXEnd, @Default(215.0) double areaYStart, @Default(540.0) double areaYEnd, @Default(2.0) double slideX, @Default(0.0) double slideY, @Default(2000) int slideDurMill, @Default(Curves.fastOutSlowIn) @JsonKey(ignore: true) Curve slideCurve, @Default(Curves.easeInQuad) @JsonKey(ignore: true) Curve fallCurve, @Default(Curves.easeInExpo) @JsonKey(ignore: true) Curve fadeCurve})
const
factory
RainConfig.fromJson(Map<String, dynamic> json)
factory

Properties

areaXEnd double
The X-axis zone where end to fall (in pixels).
no setterinherited
areaXStart double
The X-axis zone where start to fall (in pixels).
no setterinherited
areaYEnd double
The Y-axis zone where end to fall (in pixels).
no setterinherited
areaYStart double
The Y-axis zone where to fall (in pixels).
no setterinherited
color Color
The color of a raindrop.
no setterinherited
copyWith → $RainConfigCopyWith<RainConfig>
no setterinherited
count int
The number of raindrops.
no setterinherited
fadeCurve Curve
no setterinherited
fallCurve Curve
no setterinherited
fallRangeMaxDurMill int
Maximum duration time of the fall effect (in milliseconds).
no setterinherited
fallRangeMinDurMill int
Minimum duration time of the fall effect (in milliseconds).
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isRoundedEndsDrop bool
Rounded drop ends. Otherwise, the ends be square.
no setterinherited
lengthDrop double
Raindrop length.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slideCurve Curve
Animation curve for SlideTransition.
no setterinherited
slideDurMill int
Shift duration (in milliseconds).
no setterinherited
slideX double
Offset of the widget along the X-axis during the slide animation (in pixels).
no setterinherited
slideY double
Offset of the widget along the Y-axis during the slide animation (in pixels).
no setterinherited
widgetRainDrop Widget?
Specify the cloud widget. In this case, the fields count and color, lengthDrop, widthDrop, and [] be ignored.
no setterinherited
widthDrop double
Raindrop width.
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