maybeOf static method

TouchRippleStyle? maybeOf(
  1. BuildContext context
)

Returns the TouchRippleStyle most closely associated with the given context, and returns null if there is no ScrollController associated with the given context.

Implementation

static TouchRippleStyle? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<TouchRippleStyle>();
}