MaterialScrollBehavior constructor Null safety

const MaterialScrollBehavior(
  1. {@Deprecated('Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. ' 'This feature was deprecated after v2.13.0-0.0.pre.') AndroidOverscrollIndicator? androidOverscrollIndicator}
)

Creates a MaterialScrollBehavior that decorates Scrollables with GlowingOverscrollIndicators and Scrollbars based on the current platform and provided ScrollableDetails.

MaterialScrollBehavior.androidOverscrollIndicator specifies the overscroll indicator that is used on TargetPlatform.android. When null, ThemeData.androidOverscrollIndicator is used. If also null, the default overscroll indicator is the GlowingOverscrollIndicator.

Implementation

const MaterialScrollBehavior({
  @Deprecated(
    'Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. '
    'This feature was deprecated after v2.13.0-0.0.pre.'
  )
  super.androidOverscrollIndicator,
}) : _androidOverscrollIndicator = androidOverscrollIndicator;