controller property

Implementation

static final controller = CatalogCtrl(
    extend: NodeFractal.controller,
    make: (d) => switch (d) {
          MP() => CatalogFractal.fromMap(d),
          _ => throw ('wrong'),
        },
    attributes: <Attr>[
      Attr(
        name: 'filter',
        format: FormatF.text,
        canNull: true,
        isImmutable: true,
      ),
      Attr(
        name: 'order',
        format: FormatF.text,
        canNull: true,
        isImmutable: true,
      ),
      Attr(
        name: 'source',
        format: FormatF.text,
        canNull: true,
        isImmutable: true,
      ),
      Attr(
        name: 'mode',
        format: FormatF.text,
        isImmutable: true,
      ),
      Attr(
        name: 'limit',
        format: FormatF.integer,
        def: '0',
      ),
    ]);