root property
The root of the use case tree.
This can be as simple as follows:
WerkbankRoot get root => WerkbankRoot(
children: [
WerkbankFolder(
name: 'My Folder',
children: [
WerkbankUseCase(
name: 'Some Use Case',
builder: someUseCase,
),
// ...
],
),
// Or even just usecases
WerkbankUseCase(
name: 'Some Other Use Case',
builder: someOtherUseCase,
),
// ...
],
);
Please note that using a getter is mandatory, for the hot reload to work properly.
Implementation
final WerkbankRoot root;