useDarkMode method
Implementation
void useDarkMode(BuildContext context, T Function(T, bool) builder) {
apply = builder(self, Theme.of(context).brightness == Brightness.dark);
}
void useDarkMode(BuildContext context, T Function(T, bool) builder) {
apply = builder(self, Theme.of(context).brightness == Brightness.dark);
}