resetTheme method

bool resetTheme()

Implementation

bool resetTheme() {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final method = player['resetTheme'.toJS] as JSFunction?;
      if (method != null) {
        final result = method.callAsFunction(player);
        return (result as JSBoolean?)?.toDart ?? false;
      }
    } catch (e) {}
  }
  return false;
}