getIconTheme method

IconThemeData? getIconTheme(
  1. BuildContext context
)

Returns the IconThemeData to use for toolbar icons.

If no value is set in the theme, then the iconTheme from the current AppBarTheme is returned (the app theme is taken from the context).

Implementation

IconThemeData? getIconTheme(BuildContext context) {
  final effectiveIconTheme = iconTheme ?? AppBarTheme.of(context).iconTheme;
  return effectiveIconTheme;
}