maybeOf static method
The nearest frame's data, or null outside any preview frame.
Implementation
static PreviewFrameData? maybeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<_PreviewScope>()?.data;
The nearest frame's data, or null outside any preview frame.
static PreviewFrameData? maybeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<_PreviewScope>()?.data;