DVStudioSection class

A section in Studio's switcher.

Studio ships Pages and takes the rest. That is not generality for its own sake: the workflow builder is a Pro feature and lives in dartvel_enterprise, while Studio itself is free and has to be complete without it. A switcher that named its sections could not have one of them removed, and a tab for a feature the build does not contain opens onto nothing.

Constructors

DVStudioSection({required String id, required String label, required Widget build(BuildContext context), IconData? icon})
A section that lists, counts or reports: it opens nothing, so it has nothing to name in an address and its build takes only the context.
const
DVStudioSection.opening({required String id, required String label, required Widget build(BuildContext context, DVStudioSelection selection)?, IconData? icon})
A section that can open one thing, and so has an address for it: the page in Pages, the model in Data, the function in the builder.
const

Properties

build → Widget Function(BuildContext context, DVStudioSelection selection)?
Builds the section body when its tab is selected, told what the address names inside the section and how to report what the person chose. Null on a section built the plain way, which opens nothing; read the body through body rather than here.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
The glyph on the navigation rail. Optional: a section without one gets a generic extension glyph rather than no way to be told apart.
final
id → String
Stable identifier, used for the tab's widget key.
final
label → String
What the tab reads.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

body(BuildContext context, DVStudioSelection selection) → Widget
The section's body, with the selection given to a section that asked for it and dropped for one that did not. The one field a caller reads: which of the two constructors built the section is an implementation detail, not a question anyone has to answer to draw it.
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