getIconTheme method
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;
}