maybeOf static method

FdcFocusOptions? maybeOf(
  1. BuildContext context
)

Returns the nearest scoped focus options and subscribes to scope changes.

Implementation

static FdcFocusOptions? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<_FdcFocusScope>()
      ?.options;
}