getSlots method

String? getSlots()

Implementation

String? getSlots() {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final method = player['getSlots'.toJS] as JSFunction;
      final result = method.callAsFunction(player);
      if (result != null && !result.typeofEquals('undefined')) {
        return _jsonStringify(result);
      }
    } catch (e) {
      return null;
    }
  }
  return null;
}