of static method
Implementation
static OverlayTooltipScaffoldImplState? of(BuildContext context) {
final OverlayTooltipScaffoldImplState? result =
context.findAncestorStateOfType<OverlayTooltipScaffoldImplState>();
if (result != null) return result;
throw FlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary(
'OverlayTooltipScaffold.of() called with a context that does not contain a OverlayTooltipScaffold.',
),
ErrorDescription(
'No OverlayTooltipScaffold ancestor could be found starting from the context that was passed to OverlayTooltipScaffold.of(). '
'This usually happens when the context provided is from the same StatefulWidget as that '
'whose build function actually creates the OverlayTooltipScaffold widget being sought.',
),
context.describeElement('The context used was'),
]);
}