init method

void init(
  1. String logoPath, {
  2. EasyLoadingConfig? easyLoadingConfig,
  3. MaterialHeader? materialHeader,
  4. ClassicFooter? classicFooter,
})

初始化数据

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;
  }
}