loadAnimation method

void loadAnimation(
  1. String animationId
)

Implementation

void loadAnimation(String animationId) {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final method = player['loadAnimation'.toJS] as JSFunction;
      method.callAsFunction(player, animationId.toJS);
    } catch (e) {}
  }
}