of static method

ComConfig of(
  1. BuildContext context
)

Implementation

static ComConfig of(BuildContext context) {
  return context
          .dependOnInheritedWidgetOfExactType<ComConfiguration>()
          ?.config ??
      ComConfig.defaults();
}