WidgetBit<T> class
abstract
A widget bit.
Properties
- alignment → PlaceholderAlignment?
-
How the placeholder aligns vertically with the text.
no setter
- baseline → TextBaseline?
-
The TextBaseline to align against when using
ui.PlaceholderAlignment.baseline
,ui.PlaceholderAlignment.aboveBaseline
, andui.PlaceholderAlignment.belowBaseline
.no setter - child → WidgetPlaceholder
-
The widget to be rendered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasParent → bool
-
Returns
true
if this build bit has a parent.no setterinherited - isInline → bool?
-
Controls whether to render inline.
no setterinherited
- next → BuildBit?
-
The next bit in the tree.
no setterinherited
- parent → BuildTree
-
The container tree.
final
- prev → BuildBit?
-
The previous bit in the tree.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- swallowWhitespace → bool?
-
Controls whether to swallow following whitespaces.
no setterinherited
Methods
-
copyWith(
{BuildTree? parent}) → BuildBit -
Creates a copy with the given fields replaced with the new values.
inherited
-
flatten(
Flattened f) → void -
Flattens this bit.
inherited
-
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
Static Methods
-
block(
BuildTree parent, Widget child) → WidgetBit< Widget> - Creates a block widget.
-
inline(
BuildTree parent, Widget child, {PlaceholderAlignment alignment = PlaceholderAlignment.baseline, TextBaseline baseline = TextBaseline.alphabetic}) → WidgetBit< InlineSpan> - Creates an inline widget.