M3ESideSheetMotion class
Springs and predictive-back amounts for a side sheet.
- Annotations
Constructors
- M3ESideSheetMotion({M3ESpring enterSpring = M3EMotion.spatialDefault, M3ESpring scrimSpring = M3EMotion.effectsDefault, M3ESpring layoutSpring = M3EMotion.spatialDefault, M3ESpring settleSpring = M3EMotion.spatialDefault, double predictiveBackShrinkX = 24, double predictiveBackGrowX = 12, double predictiveBackLiftY = 48, double predictiveBackCornerRadius = 16})
-
M3ESideSheetMotion.
const
Properties
- enterSpring → M3ESpring
-
Spring for opening and closing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layoutSpring → M3ESpring
-
Spring for modal / standard morphs and body resizing.
final
- predictiveBackCornerRadius → double
-
Corner radius on every corner at full progress (16).
final
- predictiveBackGrowX → double
-
Width gained when the back swipe starts at the anchored edge (12).
final
- predictiveBackLiftY → double
-
Height lost at full progress, split above and below (48).
final
- predictiveBackShrinkX → double
-
Width lost when the back swipe moves away from the anchored edge (24).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrimSpring → M3ESpring
-
Spring for the scrim fade.
final
- settleSpring → M3ESpring
-
Spring back after a cancelled predictive back.
final
Methods
-
copyWith(
{M3ESpring? enterSpring, M3ESpring? scrimSpring, M3ESpring? layoutSpring, M3ESpring? settleSpring, double? predictiveBackShrinkX, double? predictiveBackGrowX, double? predictiveBackLiftY, double? predictiveBackCornerRadius}) → M3ESideSheetMotion - Returns a copy with the given fields replaced.
-
lerp(
M3ESideSheetMotion other, double t) → M3ESideSheetMotion -
Interpolates between this and
other; springs switch at the midpoint. -
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