RecordAction class
One action the server published for a record — a button the user may press, already filtered to what this record may run.
Absence is the contract: an action the user may not run for this record
is not in the list. There is no enabled flag to render greyed out,
deliberately — the same rule permissions follows.
Constructors
- RecordAction({required String name, required String label, String? color, String? icon, RecordActionConfirmation? confirmation})
-
const
Properties
- color → String?
-
A semantic colour name (
success,danger, …) — the same vocabulary card badges use. Null means "no opinion, use the theme's default".final - confirmation → RecordActionConfirmation?
-
Non-null means the user must confirm before the action runs, in the
action's own words.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
The panel's own icon name, unnormalised. A client that recognises it
may render it; one that does not renders a label-only button.
final
- label → String
-
final
- name → String
-
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.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
-
fromJson(
Map< String, dynamic> json) → RecordAction? - Null when the payload names no action — the one field the client cannot do without, since it is what the run endpoint is keyed on.