maybeOf static method

FdcThemeData? maybeOf(
  1. BuildContext context
)

Returns the nearest effective FDC theme and subscribes to scope changes.

Implementation

static FdcThemeData? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<_FdcThemeScope>()?.data;
}