init method
void
init(
- String logoPath, {
- EasyLoadingConfig? easyLoadingConfig,
- MaterialHeader? materialHeader,
初始化数据
Implementation
void init(
String logoPath, {
EasyLoadingConfig? easyLoadingConfig,
MaterialHeader? materialHeader,
ClassicFooter? classicFooter,
}) {
_logoPath = logoPath;
if (easyLoadingConfig != null) {
_easyLoadingConfig = easyLoadingConfig;
}
if (materialHeader != null) {
EasyRefresh.defaultHeaderBuilder = () => materialHeader;
}
if (classicFooter != null) {
EasyRefresh.defaultFooterBuilder = () => classicFooter;
}
}