PressableTheme class

Customize pressable animations.

Implementers
Annotations
  • @freezed

Constructors

PressableTheme.fill({@Default(Colors.black38) Color fillColor, @Default(BorderRadius.zero) BorderRadius borderRadius})
Customize PressableFill animations.
const
factory
PressableTheme.opacity({@Default(Duration(milliseconds: 100)) Duration duration, @Default(0.6) double opacityFactor, @Default(Curves.easeInOut) Curve curve, @Default(Curves.easeInOut) Curve reverseCurve})
Customize PressableOpacity animations.
const
factory
PressableTheme.ripple({Color? splashColor, Color? highlightColor, BorderRadius? borderRadius})
Customize PressableRipple animations.
const
factory
PressableTheme.scale({@Default(0.8) double scaleFactor, @Default(Duration(milliseconds: 100)) Duration duration, @Default(Curves.easeInOut) Curve curve, @Default(Curves.easeInOut) Curve reverseCurve})
Customize PressableScale animations.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult ripple(PressableRippleTheme value), required TResult scale(PressableScaleTheme value), required TResult opacity(PressableOpacityTheme value), required TResult fill(PressableFillTheme value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult ripple(PressableRippleTheme value)?, TResult scale(PressableScaleTheme value)?, TResult opacity(PressableOpacityTheme value)?, TResult fill(PressableFillTheme value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult ripple(PressableRippleTheme value)?, TResult scale(PressableScaleTheme value)?, TResult opacity(PressableOpacityTheme value)?, TResult fill(PressableFillTheme value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult ripple(Color? splashColor, Color? highlightColor, BorderRadius? borderRadius)?, TResult scale(double scaleFactor, Duration duration, Curve curve, Curve reverseCurve)?, TResult opacity(Duration duration, double opacityFactor, Curve curve, Curve reverseCurve)?, TResult fill(Color fillColor, BorderRadius borderRadius)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult ripple(Color? splashColor, Color? highlightColor, BorderRadius? borderRadius), required TResult scale(double scaleFactor, Duration duration, Curve curve, Curve reverseCurve), required TResult opacity(Duration duration, double opacityFactor, Curve curve, Curve reverseCurve), required TResult fill(Color fillColor, BorderRadius borderRadius)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult ripple(Color? splashColor, Color? highlightColor, BorderRadius? borderRadius)?, TResult scale(double scaleFactor, Duration duration, Curve curve, Curve reverseCurve)?, TResult opacity(Duration duration, double opacityFactor, Curve curve, Curve reverseCurve)?, TResult fill(Color fillColor, BorderRadius borderRadius)?}) → TResult?
inherited

Operators

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