SidePanelSection class

A collapsible section a module adds to the designer's side panel, under the built-in ones.

Constructors

SidePanelSection({required String id, required String title, required Widget build(BuildContext context, DesignerSession session), int order = 100, bool expand = false, Set<String>? groups})
const

Properties

build → Widget Function(BuildContext context, DesignerSession session)
Builds the section's content, shown while it is open.
final
expand → bool
Whether the section takes a share of the remaining height, like the prefab palette does, rather than its own height.
final
groups → Set<String>?
The tool groups (LevelToolHandler.group) it opens for — its tools' own — and shut for the rest until opened; null to be open whatever the tool.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Names the section, prefixed by its module.
final
order → int
Lower sorts first.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
The section's heading, drawn in capitals; the panel keeps whether the section is open or shut by it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited