FlexibleDraggableSheetExtent class Null safety

Manages state between _FlexibleDraggableScrollableSheetState, FlexibleDraggableScrollableSheetScrollController, and _FlexibleDraggableScrollableSheetScrollPosition.

The State knows the pixels available along the axis the widget wants to scroll, but expects to get a fraction of those pixels to render the sheet.

The ScrollPosition knows the number of pixels a user wants to move the sheet.

The currentExtent will never be null. The availablePixels will never be null, but may be double.infinity.

Constructors

FlexibleDraggableSheetExtent({required double minExtent, required double maxExtent, required double initialExtent, required VoidCallback listener})

Properties

additionalMaxExtent double
read-only
additionalMinExtent double
read-only
availablePixels double
read / write
currentExtent double
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
initialExtent double
final
isAtMax bool
read-only
isAtMin bool
read-only
maxExtent double
final
minExtent double
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addPixelDelta(double delta, BuildContext? context) → void
The scroll position gets inputs in terms of pixels, but the extent is expected to be expressed as a number between 0..1.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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