of static method

PreviewContext? of(
  1. BuildContext context
)

Implementation

static PreviewContext? of(BuildContext context) {
  final previewContext =
      context.dependOnInheritedWidgetOfExactType<PreviewContext>();

  return previewContext;
}