getActiveEditable method

AlohaEditable? getActiveEditable()

Get the active editable, null if none active

Implementation

AlohaEditable? getActiveEditable() {
  if (!_ready) throw AlohaException(AlohaException.notReady);

  try {
    final editableProxy = _alohaContext.callMethod('getActiveEditable');
    if (editableProxy == null) return null;
    final theEditable = AlohaEditable(editableProxy);
    return theEditable;
  } on Exception {
    return null;
  }
}