useThemeSelector method

void useThemeSelector({
  1. required Widget light(
    1. Niku
    ),
  2. required Widget dark(
    1. Niku
    ),
})

Implementation

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