onClicked method

void onClicked(
  1. String event
)

Implementation

void onClicked(String event) {
  // todo: work with substring, as url.parse seems to discard case sensitivity
  var uri = Uri.parse(event);
  var authority = uri.authority;
  var scheme = uri.scheme;
  if (scheme == "page") {
    // todo, check if access rights to this page, if not... show "???!!!"
    ActionModel action =
        GotoPage(app, pageID: authority); // construct from event
    er.Router.navigateTo(context, action);
  }
}