getProperty method

dynamic getProperty(
  1. dynamic prop
)

Implementation

dynamic getProperty(dynamic prop) {
  Function? func = getters()[prop];
  if (func == null && this is HasController) {
    func = (this as HasController).controller.getBaseGetters()[prop];
  }

  if (func != null) {
    return func();
  }
  throw InvalidPropertyException(
      'Object with id:${id ?? ''} does not have a gettable property named $prop');
}