EnhancedButtonStyle class
Extended style for ExtendedButton
Constructors
-
EnhancedButtonStyle({MaterialStateProperty<
DecorationImage> ? image, MaterialStateProperty<Gradient> ? gradient, MaterialStateProperty<Matrix4> ? transform, MaterialStateProperty<BlendMode> ? blendMode, MaterialStateProperty<Duration> ? duration, MaterialStateProperty<Curve> ? curve, bool? enableSplash, bool? enableShadow})
Properties
-
blendMode
→ MaterialStateProperty<
BlendMode> ? -
final
-
curve
→ MaterialStateProperty<
Curve> ? -
gradient and transform animation curve
final
-
duration
→ MaterialStateProperty<
Duration> -
gradient and transform animation duration
final
- enableShadow → bool
-
force enable shadow.
shadow was disabled when use image.
final
- enableSplash → bool
-
force enable splash.
splash was disabled when use image.
final
-
gradient
→ MaterialStateProperty<
Gradient> ? -
Gradient for button background
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
image
→ MaterialStateProperty<
DecorationImage> ? -
DecorationImage for button background
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transform
→ MaterialStateProperty<
Matrix4> ? -
Matrix4 trandsform for button
final
Methods
-
copyWith(
{MaterialStateProperty< DecorationImage> ? image, MaterialStateProperty<Gradient> ? gradient, MaterialStateProperty<Matrix4> ? transform, MaterialStateProperty<BlendMode> ? blendMode, MaterialStateProperty<Duration> ? duration, MaterialStateProperty<Curve> ? curve, bool? enableSplash, bool? enableShadow}) → EnhancedButtonStyle -
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