of static method
The data from the closest instance of this class that encloses the given
context
.
Implementation
static DeviceFrameStyle of(BuildContext context) {
final widget =
context.dependOnInheritedWidgetOfExactType<DeviceFrameTheme>();
return widget?.style ?? DeviceFrameStyle.dark();
}