DefaultTextStyle class

Cascades a base CellStyle onto descendant Text widgets, which merge their own style on top. Nest it to restyle a subtree (e.g. dim a whole panel) without touching each Text.

Inheritance
Available extensions

Constructors

DefaultTextStyle({Key? key, required CellStyle style, required Widget child})
const

Properties

child → Widget
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → CellStyle
final

Methods

animate({Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate

Available on Widget, provided by the AnimateExtension extension

Starts an Animate chain over this widget. duration / curve apply to the whole chain. With no trigger it plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes.
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates the Element that will mount this widget into the tree.
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

merge({Key? key, required CellStyle style, required Widget child}) → Widget
Layers style on top of the ambient default for child, rather than replacing it — so an inner scope can add a color without dropping an outer bold. (Plain DefaultTextStyle replaces.)
of(BuildContext context) → CellStyle
The cascaded style in scope, or CellStyle.none when none.