of static method

Implementation

static DeviceFrameStyle of(BuildContext context) {
  final widget =
      context.dependOnInheritedWidgetOfExactType<DeviceFrameTheme>();

  return widget?.style ?? DeviceFrameStyle.dark();
}