AmRefreshWidget<T> class Null safety

A wrapper for widgets that must be changed as its provider data is changed.

Inheritance

Constructors

AmRefreshWidget({Key? key, required Widget builder(BuildContext ctx, T? value), required AmDataProvider<T> amDataProvider})
const

Properties

amDataProvider AmDataProvider<T>
Takes AmDataProvider<T> to refresh state if the provider data is changed.
final
builder Widget Function(BuildContext ctx, T? value)
A function gives you context and the provider data as parameters and returns the child of this widget(AmRefreshWidget).
final