PrismSheetAction<T> class

A labelled button at the bottom of a PrismAdaptiveSheet.

Annotations

Constructors

PrismSheetAction({required String label, T? value, VoidCallback? onPressed, bool isDestructive = false, bool isPrimary = false, IconData? icon, bool closeOnTap = true})
Creates a sheet action.
const

Properties

closeOnTap → bool
Whether tapping closes the sheet. Set false for actions that validate.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Optional leading icon.
final
isDestructive → bool
Renders in the error color — use for delete/removal.
final
isPrimary → bool
Renders as a filled button instead of a text button.
final
label → String
Button label.
final
onPressed → VoidCallback?
Extra work to run before the sheet closes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T?
Value resolved by the future when tapped.
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