LedgerBanner class

A notice in the page's flow (a statement ready, a card declined): the raised paper in the rule with a stroke of its tone down its reading start, the tone's glyph, title in the medium and text in the second ink; actionLabel a text button under them (pressing it calls onAction), onDismiss the ringed close at its end. A screen reader hears it as it appears when it is LedgerBannerTone.wrong or LedgerBannerTone.mind.

LedgerBanner(title: 'Your October statement is ready', tone: LedgerBannerTone.note, actionLabel: 'Open', onAction: () {})
Inheritance

Constructors

LedgerBanner({required String title, String? text, LedgerBannerTone tone = LedgerBannerTone.note, String? actionLabel, VoidCallback? onAction, VoidCallback? onDismiss, LedgerStyle? style, Key? key})
A notice titled title.
const

Properties

actionLabel → String?
The words of the act under it.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAction → VoidCallback?
What the act does.
final
onDismiss → VoidCallback?
What its close does; null shows none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → LedgerStyle?
The banner's look, over components.banner. It reads fill, edge, side, shape, foreground (its title's ink) and textStyle (its title's); a LedgerBannerTone.wrong banner is in the error state. The tone's stroke and glyph keep their inks: they carry its meaning.
final
text → String?
The line under it.
final
title → String
What happened.
final
tone → LedgerBannerTone
What kind of notice it is.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited