of method

MaterialInkController of (
  1. BuildContext context
)

The ink controller from the closest instance of this class that encloses the given context.

Typical usage is as follows:

MaterialInkController inkController = Material.of(context);

Implementation

static MaterialInkController of(BuildContext context) {
  final _RenderInkFeatures result = context.findAncestorRenderObjectOfType<_RenderInkFeatures>();
  return result;
}