ImprovedScrolling constructor

const ImprovedScrolling({
  1. Key? key,
  2. required ScrollController scrollController,
  3. bool enableMMBScrolling = false,
  4. bool enableKeyboardScrolling = false,
  5. bool enableCustomMouseWheelScrolling = false,
  6. MMBScrollConfig mmbScrollConfig = const MMBScrollConfig(),
  7. KeyboardScrollConfig keyboardScrollConfig = const KeyboardScrollConfig(),
  8. CustomMouseWheelScrollConfig customMouseWheelScrollConfig = const CustomMouseWheelScrollConfig(),
  9. void onScroll(
    1. double offset
    )?,
  10. void onMMBScrollStateChanged(
    1. bool scrollingActive
    )?,
  11. void onMMBScrollCursorPositionUpdate(
    1. Offset localCursorOffset,
    2. MMBScrollCursorActivity cursorScrollActivity
    )?,
  12. required Widget child,
})

Constructor

Implementation

const ImprovedScrolling({
  Key? key,
  required this.scrollController,
  this.enableMMBScrolling = false,
  this.enableKeyboardScrolling = false,
  this.enableCustomMouseWheelScrolling = false,
  this.mmbScrollConfig = const MMBScrollConfig(),
  this.keyboardScrollConfig = const KeyboardScrollConfig(),
  this.customMouseWheelScrollConfig = const CustomMouseWheelScrollConfig(),
  this.onScroll,
  this.onMMBScrollStateChanged,
  this.onMMBScrollCursorPositionUpdate,
  required this.child,
}) : super(key: key);