changeif

Creator: coderz1093

Last updated:

0 purchases

changeif Image
changeif Images

Languages

Categories

Add to Cart

Description:

changeif

changeif #
This package is design for Niku and Flutter Hook.
Flutter Hook's useMemoized as dot notation.
Rebuild widget if the provided value is change (only work with HookWidget and State).
Requirement:

Niku
Flutter Hook

Example usage
class WithChangeIf extends HookWidget {
build(context) {
final counter = useState(0);

return NikuColumn([
NikuText("Will not be rebuild ${counter.value}").changeIf(),
NikuButton(Text("Counter: ${counter.value}"))
..onPressed(() {
counter.value++;
}),
]);
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.