FixedBouncingBehavior class

A BouncingBehavior that allows the sheet position to exceed the content bounds by a fixed amount.

The following is an example of a BouncingSheetPhysics that allows the sheet position to go beyond the SheetMetrics.maxPixels or SheetMetrics.minPixels by 12% of the content size.

const physics = BouncingSheetPhysics(
  behavior: FixedBouncingBehavior(SheetAnchor.proportional(0.12)),
);
Implemented types

Constructors

FixedBouncingBehavior(SheetAnchor range)
Creates a BouncingBehavior that allows the sheet to bounce by a fixed amount.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
range SheetAnchor
How much the sheet can bounce beyond the content bounds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

computeBounceablePixels(double offset, SheetMetrics metrics) double
Returns the number of pixels that the sheet position can go beyond the content bounds.
override
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