CellSync.fromProperties constructor
CellSync.fromProperties(
- Properties properties
Creates a new CellSync from existing properties.
Parameters:
properties
: The properties to use for this cell
Returns a new CellSync instance
Example:
final properties = Properties(
receptor: Receptor.unchanged,
bind: parentCell,
test: TestObject.passed,
synapses: Synapses.enabled
);
final cell = CellSync.fromProperties(properties);
Implementation
CellSync.fromProperties(Properties properties) : _properties = properties {
try {
if (properties.bind != null) {
properties.bind!._properties.synapses.link(this, host: properties.bind!);
}
} catch(_) {}
}