workspaces property
Full-screen tools that take the viewport: a sprite editor, a dialogue graph. Opened with EditorScope.openWorkspace.
Implementation
@override
List<WorkspaceDefinition> get workspaces => [
WorkspaceDefinition(
id: workspaceId,
label: 'Asset Store',
icon: Icons.storefront_rounded,
build: (context, workspace) {
final path = workspace.path;
return StoreWindow(
controller: controllerFor(workspace.scope),
workspace: workspace,
focusItem: path != null && path.startsWith('store:')
? path.substring('store:'.length)
: null,
);
},
),
];