FramedLayout class
FramedLayout – pure string generator for framed terminal output.
Generates styled frame strings (top border, connectors, bottom border) without writing directly to any output. Used internally by FrameView and other rendering components.
Design principle: This class is a pure data/string generator. For rendering, use FrameView which composes with this class and handles proper output management.
Usage:
final frame = FramedLayout('My Title', theme: theme);
final topLine = frame.top(); // Returns string, doesn't print
final bottomLine = frame.bottom();
Constructors
- FramedLayout(String title, {PromptTheme theme = const PromptTheme()})
-
const
Properties
- features → DisplayFeatures
-
Shorthand access to features.
no setter
- glyphs → TerminalGlyphs
-
Shorthand access to glyphs.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → PromptTheme
-
final
- title → String
-
final
Methods
-
bottom(
) → String - Returns the bottom line sized to match the top.
-
connector(
) → String - Returns the connector line sized to the title/content width.
-
gutter(
) → String -
Returns the left gutter prefix string:
│Returns empty string when borders are disabled. -
gutterOnly(
) → String - Returns just the gutter character without trailing space. Returns empty string when borders are disabled.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
top(
) → String - Returns the top title line (unstyled; caller may add bold if desired).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited