MultiStateSheetExtent<StateType> class
A class that represents the extent (size) of a multi state sheet.
This class is typically used to define and manage the minimum, maximum, and current extents of a multi state sheet component.
Constructors
-
MultiStateSheetExtent({required SnappingBehavior behavior, required SheetStateMapper<
StateType> stateMapper, required int initialState, required double availablePixels, required double durationMultiplier, double forceMultiplier = 1.0, VoidCallback? onStateChanged, VoidCallback? onOffsetChanged})
Properties
- anchoredState → int
-
The actual state of states to snap on, on which is stateInterpolation value relied on and at which it takes the starting point.
no setter
- availablePixels ↔ double
-
getter/setter pair
- behavior → SnappingBehavior
-
final
- componentSizes ↔ SheetWidgetSizes
-
getter/setter pair
- currentState → int
-
Current state of the sheet layout.
no setter
- durationMultiplier → double
-
Diclarates how fast the sheet snapping to the next position will be.
final
- forceMultiplier → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialComponentSizes ↔ SheetWidgetSizes
-
getter/setter pair
- initialState → int
-
final
- isAnimatingOpen ↔ bool
-
getter/setter pair
- isAtMax → bool
-
no setter
- isAtMin → bool
-
no setter
- isEnabled ↔ bool
-
getter/setter pair
- isPreformingResize ↔ bool
-
getter/setter pair
- maxOffset → double
-
Height in pixels from the top of the bounding box at which the sheet ends to draw.
no setter
- minOffset → double
-
Height in pixels from the top of the bounding box at which the sheet starts to draw.
no setter
- offset → double
-
Current height offset for sheet visible view.
no setter
- onOffsetChanged → VoidCallback?
-
final
- onStateChanged → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeMaxOffset → double
-
no setter
- snapAnimationDuration → Duration?
-
final
- stateInterpolation → double
-
Interpolation value between states.
no setter
-
stateMapper
→ SheetStateMapper<
StateType> -
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
-
updateComponents(
double topHeaderHeight, double headerHeight, double contentHeight, ) → double? - Method to update size of the sheet's components.
-
updateSize(
double newOffset, {bool isAnimating = false, bool notify = true}) → void -
updateState(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited