source method

  1. @ControllerProps(NodeProps.kSource)
void source(
  1. VoltronArray source
)

Implementation

@ControllerProps(NodeProps.kSource)
void source(VoltronArray source) {
  if (source.size() == 0) return;
  VoltronMap? firstObj = source.get<VoltronMap>(0);
  String? src = firstObj?.get<String>('uri');
  if (src != null) {
    var srcComputed = context.convertRelativePath(rootId, src);
    if (srcComputed != imgSrc) {
      imgSrc = srcComputed;
      _isFirstLoad = true;
    }
  }
}