useDarkMode method

void useDarkMode(
  1. Widget builder(
    1. Niku,
    2. bool
    )
)

Implementation

void useDarkMode(Widget Function(Niku, bool) builder) {
  useChild(
    (child) => Builder(
      builder: (context) => builder(
        child.build(context).niku,
        Theme.of(context).brightness == Brightness.dark,
      ),
    ),
  );
}