BootstrapAlert class
BootstrapAlert(
visible: true,
status: AlertStatus.primary,
text: 'Default Primary Alert',
),
BootstrapAlert(
visible: true,
status: AlertStatus.warning,
leadingIcon: AlertIcons.warning,
text: 'Warning Alert with Icon',
),
BootstrapAlert(
visible: true,
status: AlertStatus.success,
leadingIcon: AlertIcons.success,
isDismissible: true,
text: 'Success Alert with Icon',
),
BootstrapAlert(
visible: true,
status: AlertStatus.danger,
leadingIcon: AlertIcons.warning,
isDismissible: true,
autoCloseDuration: Duration(seconds: 1),
text: 'Danger Alert with Icon, Dismiss Button and Auto Close',
),
BootstrapAlert(
visible: true,
text: 'Danger Alert with Icon, Dismiss Button and Auto Close',
borderRadius: BorderRadius.only(
topLeft: Radius.circular(36),
bottomRight: Radius.circular(36),
),
),
BootstrapAlert(
visible: true,
text: 'Danger Alert with Icon, Dismiss Button and Auto Close',
padding: EdgeInsets.all(4),
),
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BootstrapAlert
Constructors
- BootstrapAlert({Key? key, required String text, IconData? leadingIcon, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, BorderRadius? borderRadius, Duration? autoCloseDuration, VoidCallback? onDismissed, bool visible = false, bool isDismissible = false, AlertStatus status = _defaultAlertStatus})
-
const
Properties
- autoCloseDuration → Duration?
-
If autoCloseDuration is not
null
, it will dismiss after that time.final - borderRadius → BorderRadius?
-
Default:
BorderRadius.circular(4)
final - hashCode → int
-
The hash code for this object.
no setterinherited
- isDismissible → bool
-
Defines the dismissibility of BootstrapAlert.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leadingIcon → IconData?
-
If leadingIcon is not
null
, it will appear.final - margin → EdgeInsetsGeometry?
-
Default:
EdgeInsets.only(bottom: 16)
final - onDismissed → VoidCallback?
-
final
- padding → EdgeInsetsGeometry?
-
Default:
EdgeInsets.all(16)
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → AlertStatus
-
Default:
AlertStatus.primary
final - text → String
-
Text in the BootstrapAlert.
final
- visible → bool
-
Defines the visibility of the BootstrapAlert.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< BootstrapAlert> -
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