notifier_plugin library

Classes

ChangeNotifierBuilder
HttpNotifier
HttpNotifier is a special kind of ValNotifier that was designed to perform http requests and notify its listeners accordingly. The type of request and other parameters are stored as an buffer by this class. So if someone doesn't explicitly specify a parameter or request type (or passes null), it automatically assumes the previous values/type. This could reduce the boilerplate code while performing requests to the same url or with similar or same parameter at different places in the app.
MultiChangeNotifierBuilder
NotificationBuilder
The NotificationBuilder widget just simply re-builds the builder function passed to it, whenever the notifiers passed to it gets called/receives a notification. Optionally, one could decide when the NotificationBuilder should re-build on notification and when not by the help of canRebuild parameter. The passed notifiers can be disposed when this widget gets disposed by passing true to the disposeNotifier parameter.
Notifier
A Notifier is a simple object that internally maintains a set of listeners and notifies them whenever it is asked to. While a Notifier might just seem like being capable of doing just that, this plugin has interfaced the same list of listeners with methods by re-using Dart in such a way that you can, [...]
SimpleNotificationBuilder
A SimpleNotificationBuilder is a NotificationBuilder that is a bit simpler. It only accepts a set of notifiers and a builder function that executes to return a Widget to the main build method of this this widget, whenever it gets re-built either by the notification of one of the notifiers or when the widget tree in which it is placed in gets rebuilt.
SmartCircularProgressIndicator
A CircularProgressIndicator that can decently auto-adjust itself with respect to the widget tree it is placed in, and is hence considered to be smart.
SWNotifier
The SWNotifier class is a maintains an internal abstract stopwatch that can be started, stopped, paused and then played as per your requirements. You can even dynamically change the elapsed duration by overwriting it, or adding/deducting/multiply/dividing it by a certain Duration or num. This class was made with the intention of making creating a stopwatch easier, however it can also be indirectly used as a live timer with negative duration and by considering the absolute duration with the help of Duration.abs. (A simple listener can be attached to see when the Timer should be cancelled)
TickerNotifier
A TickerNotifier is a simple Notifier class that has an variable that can maintain a ticker that by default just either notifies every listener at every tick (play) or simply doesn't (pause). [...]
TickerValNotifier<T>
TimedNotifier
TimedNotifier is just a simple TickerNotifier class that re-uses the Ticker variable provided by it's parent class to internally create an abstract controllable timer with the help of other data members defined within this class. [...]
TimedValNotifier<T>
TimedValNotifier is just a simple TickerNotifier class that re-uses the Ticker variable provided by it's parent class to internally create an abstract controllable timer with the help of other data members defined within this class. [...]
TweenNotifier<T>
ValNotificationBuilder<T>
A ValNotificationBuilder<T> accepts a notifier of type ValNotifier<T> and a builder function that re-builds either when the notifier gets called or when the widget tree it is a part of gets re-built. One can decide when the widget should re-build and when not by passing a function that accepts a value of type T to the parameter canRebuild and return true on whichever notification the widget should rebuild else false. Optionally, one can pass true to the to the disposeNotifier parameter to dispose the passed notifier, once this widget gets disposed.
ValNotifier<T>
A ValNotifier<T> is just a Notifier that has realized that can notify its listeners along with a value while storing the value that it notifies in a buffer so that no one has to re-specify the value while re-calling it just to refresh it's listeners. In order to clear the value stored in the buffer, one could use the method nullNotify. [...]
WFuture<T>
WFuture<T> is a special helper class that enables a developer to define a common loader (onLoading), error handler onError and the future around which everything else is supposed to be wrapped. [...]
WStream<T>
WStream<T> is a special helper class that enables the developer to easily design UI that depends on a Stream to be more dynamic or to be in-sync with some data/state in real-time. The return value of the onLoading method determines the widget to be rendered when the stream is loading and the return value of the onError method after passing the error obtained determines the widget to be rendered when the Stream receives an error. The widget to be rendered when a piece of data is normally received is determined by the Widget Function(T) passed to the operator - that determines the widget to be rendered.

Extensions

ChangeNotifier_Ease
ChangeNotifier_Extension
An extension method that enables the developer to directly call an ChangeNotifier
DateTime_Ease
A simple extension method that makes adding some to Duration to a date and finding the difference between two DateTimes in Duration a bit easier.
Future_Ease
Future_Function_Ease
Iterable_
An extension method that provides certain method to make certain operations easier in/while using this plugin.
Iterable_Bool_Ease
An extension method declared on Iterable<bool>
Iterable_ChangeNotifier_Ease
Iterable_Notifier
A special extension applied on Iterable<Notifier> to make performing compound operations on multiple notifiers easy.
Iterable_ValNotifier
IterableChangeNotifier_Extension
An extension method that enables the developer to directly call an Iterable<ChangeNotifier>
IterableValueNotifier_Extension
An extension method that enables the developer to directly call an Iterable<ValueNotifier<T>>
Notifiable__Widget
Enables the developer to use the operator '-' to attach a Notifier to a WidgetBuilder function.
Stream_Ease
Stream_Function_Ease
StreamController_Ease
Temp_Notifier
Enables the developer to use the operator '~' to implicitly instantiate and attach the passed Widget Function(Notifier) to a Notifier. [...]
Temp_ValNotifier
Enables the developer to use the operator '~' to implicitly instantiate and attach the passed Widget Function(Notifier) to a ValNotifier<T>. [...]
ValueNotifier_Ease
ValueNotifier_Extension
An extension method that enables the developer to directly call an ValueNotifier<T>

Enums

HttpRequestType

Exceptions / Errors

AtomicError
A type of AssertionError that is thrown when an Iterable<Notifier> fails to perform an operation atomically. [...]