of static method
Reads the DeUnaCheckoutData configuration from the widget tree.
Implementation
static DeUnaCheckoutData of(BuildContext context) {
final widget = context
.dependOnInheritedWidgetOfExactType<DeUnaCheckoutConfiguration>();
if (widget == null) {
throw FlutterError(
'''
DeUnaCheckoutConfiguration.of() called with a context that does not contain a DeUnaCheckoutConfiguration.
No DeUnaCheckoutConfiguration ancestor could be found starting from the context that was passed to DeUnaCheckoutConfiguration.of().
This can happen if the context comes from a widget above the DeUnaCheckoutConfiguration, e.g., the context might be from a StatelessWidget.
In this case, there is nothing to do.
''',
);
}
return widget.data;
}