update static method

void update({
  1. ULoadingSettings? settings,
  2. WidgetBuilder? customLoader,
  3. String? text,
  4. String? source,
  5. String? package,
  6. int? percent,
  7. URxInt? percentRx,
})

Implementation

static void update({
  ULoadingSettings? settings,
  WidgetBuilder? customLoader,
  String? text,
  String? source,
  String? package,
  int? percent,
  URxInt? percentRx,
}) {
  if (!_isShowing) return;
  if (settings != null || customLoader != null || text != null || source != null || package != null) {
    _activeSettings = (settings ?? _activeSettings).copyWith(builder: customLoader, text: text, source: source, package: package);
    _overlayEntry?.markNeedsBuild();
  }
  if (percent != null || percentRx != null) _bindPercent(percent: percent, percentRx: percentRx);
}