setSource method

  1. @ControllerProps(NodeProps.kSource)
void setSource(
  1. WebViewViewModel renderViewModel,
  2. VoltronMap? source
)

Implementation

@ControllerProps(NodeProps.kSource)
void setSource(WebViewViewModel renderViewModel, VoltronMap? source) {
  String? src = source?.get<String>('uri');
  if (src != null && src != renderViewModel.src) {
    renderViewModel.src = src;
  }
}