update static method
void
update({
- ULoadingSettings? settings,
- WidgetBuilder? customLoader,
- String? text,
- String? source,
- String? package,
- int? percent,
- 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);
}