of static method

Returns the data from the closest LoadingIndicatorTheme ancestor. If there is no ancestor, it returns null.

Typical usage is as follows:

LoadingIndicatorThemeData? theme = LoadingIndicatorTheme.of(context);

Implementation

static LoadingIndicatorThemeData? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<LoadingIndicatorTheme>()
      ?.data;
}