of method Null safety

ResponsiveWrapperData of(
  1. BuildContext context


static ResponsiveWrapperData of(BuildContext context) {
  final InheritedResponsiveWrapper? data = context
  if (data != null) return data.data;
  throw FlutterError.fromParts(
          'ResponsiveWrapper.of() called with a context that does not contain a ResponsiveWrapper.'),
          'No Responsive ancestor could be found starting from the context that was passed '
          'to ResponsiveWrapper.of(). Place a ResponsiveWrapper at the root of the app '
          'or supply a ResponsiveWrapper.builder.'),
      context.describeElement('The context used was')