findCustomObject method
Finds a matching custom object definition for def.
Implementation
ValueDef? findCustomObject(ValueDef def) {
ValueDef? find = _allCustomObject.firstWhereOrNull(
(element) => def.isStructSame(element),
);
return find;
}