of static method

Implementation

static StaticStyleState of(BuildContext context) {
  final StyleInherited style = context.dependOnInheritedWidgetOfExactType<StyleInherited>()!;
  return style.data;
}