controller property

ConnectionCtrl<ConnectionFractal> controller
final

Implementation

static final controller = ConnectionCtrl(
  extend: InteractionFractal.controller,
  make: (d) => switch (d) {
    MP() => ConnectionFractal.fromMap(d),
    Object() || null => throw ('wrong event type')
  },
  attributes: [
    Attr(
      name: 'from',
      format: FormatF.reference,
      isImmutable: true,
      isIndex: true,
    ),
  ],
);