OpacityModifierSpec class
A modifier that wraps a widget with the Opacity widget.
The Opacity widget is used to make a widget partially transparent.
- Inheritance
-
- Object
- Spec<
OpacityModifierSpec> - WidgetModifierSpec<
OpacityModifierSpec> - OpacityModifierSpec
Constructors
- OpacityModifierSpec(double opacity)
-
const
Properties
- animated → AnimatedData?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAnimated → bool
-
no setterinherited
- opacity → double
-
The opacity argument must not be null and
must be between 0.0 and 1.0 (inclusive).
final
-
props
→ List<
Object?> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
no setterinherited
- type → Type
-
no setterinherited
Methods
-
build(
Widget child) → Widget -
override
-
copyWith(
{double? opacity}) → OpacityModifierSpec -
Creates a copy of this spec with the given fields
replaced by the non-null parameter values.
override
-
getDiff(
EqualityMixin other) → Map< String, String> -
inherited
-
lerp(
covariant OpacityModifierSpec? other, double t) → OpacityModifierSpec -
Linearly interpolate with another Spec object.
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