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