useThemeSelector method
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,
),
),
);
}