toolbarButtons property

  1. @override
List<ToolbarButton> get toolbarButtons
override

Buttons after the built-in play controls.

Implementation

@override
List<ToolbarButton> get toolbarButtons => [
  ToolbarButton(
    id: 'asset_store.open',
    icon: Icons.storefront_rounded,
    tooltip:
        'Asset Store: plugins, kits, art and sound '
        '(${_openKey.shortcut})',
    order: 105,
    // A feature of the editor, not a tool for the scene: under the
    // transform tools, apart from the modules' buttons.
    slot: ToolbarSlot.toolColumn,
    isActive: (scope) =>
        scope.activeWorkspace.value?.definition.id == workspaceId,
    onPressed: (scope) => scope.openWorkspace(workspaceId),
  ),
];