toggleDarkMode method
Toggles dark mode on an already-loaded banner.
BannerPlacementConfig.darkMode only sets the value the banner is
constructed with — this is the runtime equivalent native exposes
(toggleDarkMode(Boolean)/toggleDarkMode(_:) on both platforms) that
nothing in this plugin called until now.
Implementation
@override
Future<void> toggleDarkMode(bool darkMode) async {
lastDarkMode = darkMode;
toggleDarkModeCallCount++;
}