buildOverscrollIndicator method

Widget buildOverscrollIndicator(
  1. BuildContext context,
  2. Widget child,
  3. ScrollableDetails details

Applies a GlowingOverscrollIndicator to the child widget on and TargetPlatform.fuchsia.


Widget buildOverscrollIndicator(BuildContext context, Widget child, ScrollableDetails details) {
  // When modifying this function, consider modifying the implementation in
  // the Material and Cupertino subclasses as well.
  switch (getPlatform(context)) {
    case TargetPlatform.iOS:
    case TargetPlatform.linux:
    case TargetPlatform.macOS:
      return child;
    case TargetPlatform.fuchsia:
      return GlowingOverscrollIndicator(
        axisDirection: details.direction,
        color: _kDefaultGlowColor,
        child: child,