of static method

Retrieves the DefaultLoaderThemeData in the closest ancestor element.

Implementation

static DefaultLoaderThemeData of(BuildContext? context) =>
    context
        ?.dependOnInheritedWidgetOfExactType<_DefaultLoaderTheme>()
        ?.themeData ??
    defaultData;