Action constructor

Action({
  1. required String id,
  2. String? title,
})

Implementation

Action({
  /// The identifier of the action. Any string or [CommonActionId] for
  /// common actions.
  required String id,

  /// The title of the action. It may be ignored for common actions.
  String? title,
}) : _wrapped = $js.Action(
        id: id,
        title: title,
      );