AlertComponentOptions class
Constructors
-
AlertComponentOptions.new({required bool visible, required String message, String type = 'success', int duration = 4000, VoidCallback? onHide, Color textColor = Colors.black, Color? successColor, Color? dangerColor, double overlayOpacity = 0.5, Color overlayColor = Colors.black, EdgeInsetsGeometry? overlayPadding = const EdgeInsets.all(16), AlignmentGeometry overlayAlignment = Alignment.center, bool overlayDismissible = true, AlertTapCallback? onOverlayTap, bool contentDismissible = true, AlertTapCallback? onContentTap, BoxDecoration? containerDecoration, EdgeInsetsGeometry? containerPadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 20), EdgeInsetsGeometry? containerMargin, Clip? containerClipBehavior, double? maxWidth = 420, double? minWidth, TextStyle? messageStyle, EdgeInsetsGeometry? messagePadding, TextAlign messageAlignment = TextAlign.center, int? messageMaxLines, double contentSpacing = 12, CrossAxisAlignment contentAlignment = CrossAxisAlignment.center, MainAxisSize contentMainAxisSize = MainAxisSize.min, List<
Widget> ? actions, Widget? leading, Widget? trailing, AlertMessageBuilder? messageBuilder, AlertContentBuilder? contentBuilder, AlertOverlayBuilder? overlayBuilder, Duration animationDuration = const Duration(milliseconds: 200), Curve animationCurve = Curves.easeInOut})
Properties
-
actions
→ List<
Widget> ? -
final
- animationCurve → Curve
-
final
- animationDuration → Duration
-
final
- containerClipBehavior → Clip?
-
final
- containerDecoration → BoxDecoration?
-
final
- containerMargin → EdgeInsetsGeometry?
-
final
- containerPadding → EdgeInsetsGeometry?
-
final
- contentAlignment → CrossAxisAlignment
-
final
- contentBuilder → AlertContentBuilder?
-
final
- contentDismissible → bool
-
final
- contentMainAxisSize → MainAxisSize
-
final
- contentSpacing → double
-
final
- dangerColor → Color?
-
final
- duration → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- leading → Widget?
-
final
- maxWidth → double?
-
final
- message → String
-
final
- messageAlignment → TextAlign
-
final
- messageBuilder → AlertMessageBuilder?
-
final
- messageMaxLines → int?
-
final
- messagePadding → EdgeInsetsGeometry?
-
final
- messageStyle → TextStyle?
-
final
- minWidth → double?
-
final
- onContentTap → AlertTapCallback?
-
final
- onHide → VoidCallback?
-
final
- onOverlayTap → AlertTapCallback?
-
final
- overlayAlignment → AlignmentGeometry
-
final
- overlayBuilder → AlertOverlayBuilder?
-
final
- overlayColor → Color
-
final
- overlayDismissible → bool
-
final
- overlayOpacity → double
-
final
- overlayPadding → EdgeInsetsGeometry?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- successColor → Color?
-
final
- textColor → Color
-
final
- trailing → Widget?
-
final
- type → String
-
final
- visible → bool
-
final
Methods
-
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