callvaluenotifier

Creator: coderz1093

Last updated:

0 purchases

callvaluenotifier Image
callvaluenotifier Images

Languages

Categories

Add to Cart

Description:

callvaluenotifier

callvaluenotifier #
A Flutter package to provide a ValueNotifier that knows how to refresh its
value.
Example #
Future<String> getMyValue() {
return Future.delayed(
Duration(seconds: 2), () => 'I am the future result value');
}

final myValue = CallValueNotifier<String>('I am the default value', getMyValue);
copied to clipboard
then later
ValueListenableBuilder<String>(
valueListenable: myValue,
builder: (BuildContext context, String value, Widget child) {
return Text(
'$value',
style: Theme.of(context).textTheme.headline4,
);
}),
copied to clipboard
Complete example in the example directory

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.