of static method

Implementation

static ResponsiveData of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<Spacing>()?.responsiveData ??
      (throw AssertionError("No Spacing found in context. Please use the ResponsiveScaffold"));
}