empire library

A simple yet powerful state management library for Flutter.

Classes

Empire<T extends EmpireViewModel>
Used to provide shared state and functions across specific scopes of your application, or the entire application itself.
EmpireApp<T extends EmpireViewModel>
This widget is not intended to be created manually and is used by the Empire widget.
EmpireBoolProperty
An EmpireProperty with similar characteristics as a an ordinary dart bool object
EmpireDateTimeProperty
An EmpireProperty with similar characteristics as a an ordinary dart DateTime object
EmpireDoubleProperty
An EmpireProperty with similar characteristics of dart double objects
EmpireIntProperty
An EmpireProperty with similar characteristics of dart int objects
EmpireListProperty<T>
An EmpireProperty with similar characteristics as a dart List<T>
EmpireMapProperty<K, V>
An EmpireProperty with similar characteristics as a dart Map<K, V>
EmpireNullableBoolProperty
An EmpireProperty with similar characteristics as a an ordinary dart bool object.
EmpireNullableDateTimeProperty
An EmpireProperty with similar characteristics as a an ordinary dart bool object.
EmpireNullableDoubleProperty
An EmpireProperty with similar characteristics of dart double objects
EmpireNullableIntProperty
An EmpireProperty with similar characteristics of dart int objects
EmpireNullableStringProperty
An EmpireProperty with similar characteristics as a dart String object
EmpireProperty<T>
Contains any object that will notify any listeners when its value is changed.
EmpireState<T extends EmpireWidget<EmpireViewModel>, E extends EmpireViewModel>
Base class for your EmpireWidgets accompanying State class.
EmpireStateChanged<T>
The event that is added to the State stream.
EmpireStringProperty
An EmpireProperty with similar characteristics as a dart String object
EmpireValue<T>
Base class for EmpireProperty
EmpireViewModel
A ViewModel is an abstraction of the view it is bound to and represents the current state of the data in your model.
EmpireWidget<T extends EmpireViewModel>
Base class for any widget that needs to be updated when the state of your widget changes.
ErrorEvent<T>
The event that is added to the Error stream.

Functions

createNullProperty<T>({String? propertyName}) EmpireProperty<T?>
Short hand helper function for initializing an EmpireProperty with a null value.
createProperty<T>(T value, {String? propertyName}) EmpireProperty<T>
Short hand helper function for initializing an EmpireProperty.