CloudConfig class

Configuration of the Cloud.

Inheritance
Annotations
  • @freezed

Constructors

CloudConfig({@Default(250.0) double size, @Default(Color.fromARGB(170, 255, 255, 255)) Color color, @Default(Icons.cloud_rounded) @JsonKey(ignore: true) IconData icon, @JsonKey(ignore: true) Widget? widgetCloud, @Default(70.0) double x, @Default(5.0) double y, @Default(1.0) double scaleBegin, @Default(1.1) double scaleEnd, @Default(Curves.fastOutSlowIn) @JsonKey(ignore: true) Curve scaleCurve, @Default(11.0) double slideX, @Default(5.0) double slideY, @Default(2000) int slideDurMill, @Default(Curves.fastOutSlowIn) @JsonKey(ignore: true) Curve slideCurve})
const
factory
CloudConfig.fromJson(Map<String, dynamic> json)
factory

Properties

color Color
The color of the cloud.
no setterinherited
copyWith → $CloudConfigCopyWith<CloudConfig>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
icon IconData
Cloud icon. You can use a custom widget widgetCloud.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleBegin double
The scale factor of the widget at the beginning of the animation.
no setterinherited
scaleCurve Curve
Animation curve for ScaleTransition.
no setterinherited
scaleEnd double
The scale factor of the widget at the end of the animation.
no setterinherited
size double
Cloud size.
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
widgetCloud Widget?
Specify the cloud widget. In this case, the fields icon and color be ignored.
no setterinherited
x double
The coordinate of cloud displacement along the x-axis (in pixels).
no setterinherited
y double
The coordinate of cloud displacement along the x-axis (in pixels).
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