of static method

Implementation

static ToolPresentationRegistry of(BuildContext context) {
  return context
          .dependOnInheritedWidgetOfExactType<ToolPresentationScope>()
          ?.registry ??
      ToolPresentationRegistry.defaults;
}