Bulletin class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- Bulletin
Constructors
-
Bulletin({Key? key, List<
BulletinItem> children = const [], Widget? icon, TextStyle? textStyle, double? bulletinWidth, double? bulletinHeight, Color backgroundColor = Colors.white, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(9)), Duration gapDuration = const Duration(seconds: 5), Duration animationDuration = const Duration(milliseconds: 500), Curve curve = Curves.easeIn, bool showCloseButton = true, Widget? closeButton, Color onCloseIconColor = Colors.white, Color onCloseBackGroundColor = Colors.black, VoidCallback? onClose}) -
Bulletin
const
Properties
- animationDuration → Duration
-
The duration of the animation.
final
- backgroundColor → Color
-
The background color of the bulletin.
final
- borderRadius → BorderRadius
-
The border radius of the bulletin.
final
- bulletinHeight → double?
-
The height of the bulletin.
final
- bulletinWidth → double?
-
The width of the bulletin.
final
-
children
→ List<
BulletinItem> -
The List of BulletinItems.
final
- closeButton → Widget?
-
The onCloseButton Widget
final
- curve → Curve
-
Fade in curve. Defaults to Curves.easeIn.
final
- gapDuration → Duration
-
The duraion of the gap between the bulletins.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
The const icon for the bulletin.
If this is null, the icon property of bulletin item will be used.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onClose → VoidCallback?
-
The callback when the bulletin is closed.
final
- onCloseBackGroundColor → Color
-
The onClose Button background Color
final
- onCloseIconColor → Color
-
The onClose Button icon Color
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCloseButton → bool
-
Toggle showing the close button.
final
- textStyle → TextStyle?
-
The default text styles for all the bulletins
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< Bulletin> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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.
inherited
-
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}) → 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