DialogButton class

A button definition for SmartDialog.

Constructors

DialogButton({required String label, VoidCallback? onPressed, Color? textColor, bool filled = false, Color? fillColor})
const
DialogButton.cancel({String label = 'Cancel', VoidCallback? onPressed})
Quick cancel button.
factory
DialogButton.confirm({String label = 'Confirm', VoidCallback? onPressed, Color fillColor = const Color(0xFF1565C0)})
Quick confirm button (filled blue).
factory
DialogButton.destructive({String label = 'Delete', VoidCallback? onPressed})
Quick destructive button (filled red).
factory

Properties

fillColor Color?
Override button background color (only when filled is true).
final
filled bool
If true, button has filled background.
final
hashCode int
The hash code for this object.
no setterinherited
label String
Button label text.
final
onPressed VoidCallback?
Called when this button is tapped. Dialog closes automatically.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color?
Override button text color.
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