executeEntrypoint method

Future<void> executeEntrypoint({
  1. bool shouldResolve = true,
  2. bool shouldEvaluate = true,
  3. 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.');
  }
}