maybeOf static method

AdaptiFlowData maybeOf(
  1. BuildContext context
)

Retrieves the nearest AdaptiFlowData without creating a dependency.

Use this for one-time reads where you don't need to rebuild when config changes (e.g., during initialization).

Implementation

static AdaptiFlowData maybeOf(BuildContext context) {
  final widget = context.getInheritedWidgetOfExactType<AdaptiFlow>();
  return widget?.data ?? const AdaptiFlowData();
}