of static method

PromptScope? of(
  1. BuildContext context
)

Obtains the nearest PromptScope from the build context.

Implementation

static PromptScope? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<PromptScope>();
}