Stylesheet class
Stylesheet for styling content within a document.
A stylesheet is a series of priority-order rules that generate style metadata, which is then applied to the layout and the blocks within the layout.
Constructors
-
Stylesheet({EdgeInsets? documentPadding, required List<
StyleRule> rules, required AttributionStyleAdjuster inlineTextStyler, InlineWidgetBuilderChain inlineWidgetBuilders = const [], SelectedTextColorStrategy? selectedTextColorStrategy}) -
const
Properties
- documentPadding → EdgeInsets?
-
Padding applied around the interior edge of the document.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inlineTextStyler → AttributionStyleAdjuster
-
Styles all in-line text in the document.
final
- inlineWidgetBuilders → InlineWidgetBuilderChain
-
Chain of inline widget builders, used to map AttributedText placeholders
to inline widgets.
final
-
rules
→ List<
StyleRule> -
Priority-order list of style rules.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedTextColorStrategy → SelectedTextColorStrategy?
-
The strategy that chooses the color for selected text.
final
Methods
-
copyWith(
{EdgeInsets? documentPadding, AttributionStyleAdjuster? inlineTextStyler, InlineWidgetBuilderChain? inlineWidgetBuilders, SelectedTextColorStrategy? selectedTextColorStrategy, List< StyleRule> addRulesBefore = const [], List<StyleRule> ? rules, List<StyleRule> addRulesAfter = const []}) → Stylesheet -
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