GlassActionSheet class
An action sheet of glass, as iOS's: a group of full-width rows parted by hairlines, and a cancel button below it.
A finger lights the row under it and can slide across the rows; letting
go over one chooses it. Choosing pops the sheet's route with the action's
result. Usually shown with showGlassActionSheet.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GlassActionSheet
Constructors
-
GlassActionSheet.new({Key? key, Widget? title, Widget? message, required List<
GlassActionSheetAction> actions, GlassActionSheetAction? cancel, String semanticLabel = 'Actions'}) -
Creates an action sheet.
const
Properties
-
actions
→ List<
GlassActionSheetAction> -
The rows, in order, parted by hairlines.
final
- cancel → GlassActionSheetAction?
-
Shown on its own below the group, in bold.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- message → Widget?
-
Shown under the title, in smaller type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String
-
Names the sheet for assistive technology.
final
- title → Widget?
-
Shown at the top of the sheet, above message.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GlassActionSheet> -
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, int wrapWidth = 65}) → 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