menu

  1. [ Flutter ](index.html)
  2. [ widgets.dart ](widgets/widgets-library.html)
  3. OverscrollNotification class 

OverscrollNotification

brightness_4  brightness_5

[ description
](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/scroll_notification.dart#L221
"View source code")

#  OverscrollNotification  class

A notification that a [ Scrollable ](widgets/Scrollable-class.html) widget has
not changed its scroll position because the change would have caused its
scroll position to go outside of its scroll bounds.

See also:

  * [ ScrollUpdateNotification ](widgets/ScrollUpdateNotification-class.html) , which indicates that a [ Scrollable ](widgets/Scrollable-class.html) widget has changed its scroll position. 
  * [ ScrollNotification ](widgets/ScrollNotification-class.html) , which describes the notification lifecycle. 

Inheritance

    

  * [ Object ](dart-core/Object-class.html)
  * [ Notification ](widgets/Notification-class.html)
  * [ LayoutChangedNotification ](widgets/LayoutChangedNotification-class.html)
  * [ ScrollNotification ](widgets/ScrollNotification-class.html)
  * OverscrollNotification 

##  Constructors

[ OverscrollNotification
](widgets/OverscrollNotification/OverscrollNotification.html) (  {  required
[ ScrollMetrics ](widgets/ScrollMetrics-mixin.html) metrics  ,  required  [
BuildContext ](widgets/BuildContext-class.html) context  ,  [
DragUpdateDetails ](gestures/DragUpdateDetails-class.html) ?  dragDetails  ,
required  [ double ](dart-core/double-class.html) overscroll  ,  [ double
](dart-core/double-class.html) velocity  =  0.0  }  )

     Creates a notification that a [ Scrollable ](widgets/Scrollable-class.html) widget has changed its scroll position outside of its scroll bounds. 

##  Properties

[ context ](widgets/ScrollNotification/context.html) → [ BuildContext
](widgets/BuildContext-class.html) ?

     The build context of the widget that fired this notification. 

final  inherited

[ depth ](widgets/ViewportNotificationMixin/depth.html) → [ int ](dart-
core/int-class.html)

     The number of viewports that this notification has bubbled through. 

no setter  inherited

[ dragDetails ](widgets/OverscrollNotification/dragDetails.html) → [
DragUpdateDetails ](gestures/DragUpdateDetails-class.html) ?

     If the [ Scrollable ](widgets/Scrollable-class.html) overscrolled because of a drag, the details about that drag update. 

final

[ hashCode ](dart-core/Object/hashCode.html) → [ int ](dart-core/int-
class.html)

     The hash code for this object. 

no setter  inherited

[ metrics ](widgets/ScrollNotification/metrics.html) → [ ScrollMetrics
](widgets/ScrollMetrics-mixin.html)

     A description of a [ Scrollable ](widgets/Scrollable-class.html) 's contents, useful for modeling the state of its viewport. 

final  inherited

[ overscroll ](widgets/OverscrollNotification/overscroll.html) → [ double
](dart-core/double-class.html)

     The number of logical pixels that the [ Scrollable ](widgets/Scrollable-class.html) avoided scrolling. 

final

[ runtimeType ](dart-core/Object/runtimeType.html) → [ Type ](dart-core/Type-
class.html)

     A representation of the runtime type of the object. 

no setter  inherited

[ velocity ](widgets/OverscrollNotification/velocity.html) → [ double ](dart-
core/double-class.html)

     The velocity at which the [ ScrollPosition ](widgets/ScrollPosition-class.html) was changing when this overscroll happened. 

final

##  Methods

[ debugFillDescription
](widgets/OverscrollNotification/debugFillDescription.html) (  [ List ](dart-
core/List-class.html) < [ String ](dart-core/String-class.html) > description
)  → void

     Add additional information to the given description for use by [ toString ](widgets/Notification/toString.html) . 

override

[ dispatch ](widgets/Notification/dispatch.html) (  [ BuildContext
](widgets/BuildContext-class.html) ?  target  )  → void

     Start bubbling this notification at the given bu