ScaleEffect class

An Effect that applies a scale to a Widget.

Inheritance

Constructors

ScaleEffect({double? scale, double? scaleX, double? scaleY, AlignmentGeometry alignment = Alignment.center, Offset origin = Offset.zero})
Creates a ScaleEffect.

Properties

alignment AlignmentGeometry
The alignment of the origin, relative to the size of the Widget. This directly maps to the Transform.alignment property.
final
hashCode int
The hash code for this object.
no setterinherited
origin Offset
The origin of the scale. This allows to translate the origin of the scale to a different point. (relative to the upper left corner of this render object)
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
The scale to apply to the Widget on both axes. This must be null if scaleX or scaleY is provided.
final
scaleX double?
The scale to apply to the Widget on the x-axis. This must be null if scale is provided.
final
scaleY double?
The scale to apply to the Widget on the y-axis. This must be null if scale is provided.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

apply(BuildContext context, Widget child) Widget
Applies this Effect to given child. This is called by Effect builder widgets to apply the effect to given child.
override
lerp(covariant ScaleEffect other, double value) ScaleEffect
Linearly interpolates between two Effects. This is used to animate between two Effects. The value argument is a fraction that determines the position of this effect between this and other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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