ToggleSheetExtent class
A class that represents the extent (size) of a toggle sheet.
This class is typically used to define and manage the minimum, maximum, and current extents of a toggleable sheet component.
Constructors
- ToggleSheetExtent({required double availablePixels, required bool clipByHeader, required double durationMultiplier, required double forceMultiplier, ToggleSheetHeightModel? heightModel, VoidCallback? onOffsetChanged})
Properties
- availablePixels ↔ double
-
getter/setter pair
- clipByHeader → bool
-
final
- componentSizes ↔ SheetWidgetSizes
-
getter/setter pair
- durationMultiplier → double
-
Diclarates how fast the sheet snapping to the next position will be.
final
- fixedHeightOffset → double?
-
no setter
- forceMultiplier → double
-
A multiplier that determines the force applied to velocity in snapping position calculations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heightModel ↔ ToggleSheetHeightModel?
-
getter/setter pair
- isAtMax → bool
-
no setter
- isAtMin → bool
-
no setter
- isClosed ↔ bool
-
getter/setter pair
- maxHeight → double
-
Height in pixels from the top of the bounding box at which the sheet ends to draw.
no setter
- minHeight ↔ double
-
Height in pixels from the top of the bounding box at which the sheet starts to draw.
getter/setter pair
- offset → double
-
Current height offset for sheet visible view.
no setter
- onOffsetChanged → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapAnimationDuration → Duration?
-
final
Methods
-
addPixelDelta(
double delta) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startActivity(
{required VoidCallback onCanceled}) → void -
toString(
) → String -
A string representation of this object.
inherited
-
updateSize(
double newHeight, {bool isAnimating = false, bool notify = true}) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited