setLoopCount method
Implementation
bool setLoopCount(int loopCount) {
if (dotLottiePlayer != null && !isDisposed) {
try {
final player = dotLottiePlayer as JSObject;
final method = player['setLoopCount'.toJS] as JSFunction;
method.callAsFunction(player, loopCount.toJS);
return true;
} catch (e) {
return false;
}
}
return false;
}