getEditableById method

AlohaEditable? getEditableById(
  1. String id
)

Get an editable by its id attribute, returns null if none found

Implementation

AlohaEditable? getEditableById(String id) {
  if (!_ready) throw AlohaException(AlohaException.notReady);

  try {
    final editableProxy = _alohaContext.callMethod('getEditableById', [id]);
    if (editableProxy == null) return null;
    final theEditable = AlohaEditable(editableProxy);
    return theEditable;
  } on Exception {
    return null;
  }
}