DraftModeUIButtonPresets class abstract

Predefined button presets for common actions.

Each method returns a DraftModeUIButton built from the public layout factories (DraftModeUIButton.label / DraftModeUIButton.text). All parameters can be overridden — these are convenience shortcuts, not a separate widget type.

Constructors

DraftModeUIButtonPresets()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

cancel({String label = 'Cancel', Key? key, Widget? pendingChild, bool isPending = false, VoidCallback? onPressed, DraftModeUIButtonSize size = DraftModeUIButtonSize.large, Color? backgroundColor, Color? textColor, bool stretched = true, EdgeInsetsGeometry? padding, bool autoPending = false}) DraftModeUIButton
Cancel button — plain variant, text only (iOS convention).
delete({String label = 'Delete', Key? key, Widget? pendingChild, bool isPending = false, VoidCallback? onPressed, DraftModeUIButtonSize size = DraftModeUIButtonSize.large, Color? backgroundColor, Color? textColor, bool stretched = true, EdgeInsetsGeometry? padding, bool autoPending = false}) DraftModeUIButton
Delete button — destructive variant with a trash icon.
edit({String label = 'Edit', Key? key, Widget? pendingChild, bool isPending = false, VoidCallback? onPressed, DraftModeUIButtonSize size = DraftModeUIButtonSize.large, Color? backgroundColor, Color? textColor, bool stretched = true, EdgeInsetsGeometry? padding, bool autoPending = false}) DraftModeUIButton
Edit button — plain variant with a pencil icon.
save({String label = 'Save', Key? key, Widget? pendingChild, bool isPending = false, VoidCallback? onPressed, DraftModeUIButtonSize size = DraftModeUIButtonSize.large, Color? backgroundColor, Color? textColor, bool stretched = true, EdgeInsetsGeometry? padding, bool autoPending = false}) DraftModeUIButton
Save button — success variant with a checkmark icon.