setMode method

void setMode(
  1. String mode
)

Implementation

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