setLoop method

void setLoop(
  1. bool loop
)

Implementation

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