of static method

Finds the TouchRippleWidgetState from the closest instance of this class that encloses the given context.

Implementation

static TouchRippleWidgetState? of(BuildContext context) {
  return context.findAncestorStateOfType<TouchRippleWidgetState>();
}