Fluent2SplitAction class

One of a Fluent2SplitButton's other choices: its label (and icon) on a menu row, onPressed run when it is chosen; a null onPressed draws the row in the disabled ink and passes it over.

Fluent2SplitAction('Reply', onPressed: reply, icon: Fluent2Icons.arrowReply)
Annotations

Constructors

Fluent2SplitAction(String label, {required VoidCallback? onPressed, IconData? icon})
A choice labelled label that calls onPressed.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
The menu row's glyph; null shows none.
final
label → String
The menu row's words.
final
onPressed → VoidCallback?
Called when the choice is picked; null disables it.
final
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