AlertBuildDetails class final
What the alert builder is told about one alert.
Created by the package. Return defaultAlert to keep the stock look, asBlockQuote to draw this alert as the plain quote it would be without alert support, or a widget of your own built from title and content.
Constructors
- AlertBuildDetails({required BuildContext context, required GptMarkdownConfig config, required MarkdownAlertType type, required AlertStyle style, required Widget title, required Widget content, required Widget buildDefault(), required Widget buildQuote()})
- Creates alert details.
Properties
- config → GptMarkdownConfig
-
The configuration in force at this point in the document.
final
- content → Widget
-
The rendered body, without the marker line.
final
- context → BuildContext
-
The element this alert is being built in.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AlertStyle
-
The AlertStyle for type, fully resolved: accent colour, icon, title
and spacing, with the per-type override, theme and defaults folded in.
final
- title → Widget
-
The stock title row — icon and title text in the accent colour — or an
empty box when the style hides both.
final
- type → MarkdownAlertType
-
Which marker opened the alert.
final
Methods
-
asBlockQuote(
) → Widget -
This alert drawn as an ordinary quote, marker line included — exactly
what the package drew before it knew about alerts, honouring
blockQuoteBuilder. -
defaultAlert(
) → Widget - The alert the package would have drawn.
-
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