postSetAttribute method

  1. @override
bool postSetAttribute(
  1. String name,
  2. Object? value
)
override

Called after setting an attribute. If post is true, can run additional checks. Return false if you want to revert the update.

Implementation

@override
bool postSetAttribute(String name, Object? value) {
  if (!post) {
    return true;
  }

  if (_concept == null) {
    throw ConceptException('Entity(oid: ${oid}) concept is not defined.');
  }
  return true;
}