of static method

DAQProvider of(
  1. BuildContext context
)

Implementation

static DAQProvider of(BuildContext context) {
  final DAQProvider? result = context
      .dependOnInheritedWidgetOfExactType<DAQProvider>();
  assert(
    result != null,
    'DAQ provider not found! Need to wrap the app in a DAQ provider widget',
  );
  return result!;
}