init static method

dynamic init(
  1. Widget widget, {
  2. Color? backgroundColor,
})

初始化默认的 loading 视图

Implementation

static init(Widget widget, {Color? backgroundColor}) {
  _loading = widget;
  if (backgroundColor != null) {
    _backgroundColor = backgroundColor;
  }
}