call method
Implementation
Future call([BuildContext? context]) async {
if (loaders.isNotEmpty) {
for (int index = 0; index < loaders.length; index++) {
ScreenLoaderItem<T> loader = loaders[index];
ScreenLoaderEvent<T> event = ScreenLoaderEvent(
context ?? this.context,
loader.value,
);
if (await loader.validation(context ?? this.context)) {
mixin.onHold(event);
if (holdable) break;
} else {
mixin.onSkip(event);
}
if (loaders.length == index + 1) {
mixin.onDefault(context ?? this.context);
}
}
} else {
mixin.onDefault(context ?? this.context);
}
}