Views extension providing the concept of asynchronously rendered view.
An asynchronous view is first rendered in a loading state, then fires
an event to get the missing data and when it gets them, it is rerendered.
The loading errors are also handled and such a view can also have a
retry button. When a view is extended with this extension, its
initializer method should set the required properties
_watchAttributeto subscribe to the corresponding change event.
_errorHandlingMethodto customize the error handling, otherwise the view is just rerendered in case of error
Tap event handler for the retry button. It resets the attribute which
name is stored in the
_watchAttribute property and the
loadingError attribute and fires the loading event with the method
Holds the method to call when an error occurred. By default, it's
Holds the method to call to fire the load event.
Holds the attribute name which change event triggers the asynchronous process.
Holds the attribute name which stores the data needed to render the view. If provided, the asynchronous view will subscribe to the corresponding change event.