pullable method
Make a widget pullable using the Pullable widget.
Implementation
Widget pullable({
required Future<void> Function()? onRefresh,
PullableConfig? pullableConfig,
}) {
if (pullableConfig == null) {
pullableConfig = PullableConfig(onRefresh: onRefresh);
} else {
pullableConfig = pullableConfig.updateOnRefresh(onRefresh);
}
return Pullable(config: pullableConfig, child: this);
}