executeEntrypoint method
Future<void>
executeEntrypoint({
- bool shouldResolve = true,
- bool shouldEvaluate = true,
- AnimationController? animationController,
Implementation
Future<void> executeEntrypoint(
{bool shouldResolve = true, bool shouldEvaluate = true, AnimationController? animationController}) async {
if (_entrypoint != null && shouldResolve) {
await controlledInitCompleter.future;
await Future.wait([_resolveEntrypoint(), _module!.initialize()]);
if (_entrypoint!.isResolved && shouldEvaluate) {
await evaluateEntrypoint(animationController: animationController);
} else {
throw FlutterError('Unable to resolve $_entrypoint');
}
} else {
throw FlutterError('Entrypoint is empty.');
}
}