Fluent2ShellAction constructor

Fluent2ShellAction({
  1. required IconData icon,
  2. required void onPressed(
    1. BuildContext context
    ),
  3. String? label,
  4. bool accent = false,
  5. Key? key,
})

The act: icon, label when extended, onPressed with the context.

Implementation

// Not const: ui_core's ShellAction still carries its old name's fallback, so its constructor is not.
// ignore: prefer_const_constructors_in_immutables
Fluent2ShellAction({
  required super.icon,
  required super.onPressed,
  super.label,
  super.accent,
  super.key,
});