of static method

FIconStyle of(
  1. BuildContext context
)

The icon style from the closest instance of FIconStyleData that encloses the given context, or FStyle.iconStyle otherwise.

Implementation

static FIconStyle of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<FIconStyleData>()?.style ?? context.theme.style.iconStyle;