controller property
Implementation
static final controller = NodeCtrl(
extend: EventFractal.controller,
make: (d) => switch (d) {
MP() => NodeFractal.fromMap(d),
(String s) => NodeFractal(name: s),
Object() || null => throw ('wrong event type')
},
attributes: [
Attr(
name: 'sorted',
format: FormatF.text,
canNull: true,
def: '',
),
Attr(
name: 'name',
format: FormatF.text,
isImmutable: true,
isIndex: true,
),
Attr(
name: 'folder',
format: FormatF.text,
d: {'ui': 'directory'},
isImmutable: false,
isPrivate: true,
def: '',
),
ExtendableF.attr,
Attr(
name: 'price',
format: FormatF.real,
isImmutable: false,
isIndex: true,
canNull: true,
),
],
//indexes: {},
);