set_state 1.1.0+3 set_state: ^1.1.0+3 copied to clipboard
A subclass of the State object placed in a static collection.
set_state #
A subclass of the State object placed in a static collection.
Installing
I don't always like the version number suggested in the 'Installing' page. Instead, always go up to the 'major' semantic version number when installing my library packages. This means always entering a version number trailing with two zero, '.0.0'. This allows you to take in any 'minor' versions introducing new features as well as any 'patch' versions that involves bugfixes. Semantic version numbers are always in this format: major.minor.patch.
- patch - I've made bugfixes
- minor - I've introduced new features
- major - I've essentially made a new app. It's broken backwards-compatibility and has a completely new user experience. You won't get this version until you increment the major number in the pubspec.yaml file.
And so, add this to your pubspec.yaml file instead:
dependencies:
set_state:^1.0.0
For more information on this topic, read the article, The importance of semantic versioning.
Example App #
Turn to the supplied example app to learn how to use this package.
The Business side of the SetState object #
Use the mixin, StateBloc, to readily access the underlying 'state object.' As you can see the class, _CounterBloc, below is the parent class of those above.