MessageDefinition class
A message, defined once per code: its level, the label of its block, its help text and its options.
Constructors
-
MessageDefinition({required String code, required MessageLevel level, required String label, required String summary, required String description, List<
MessageOption> options = const [], int? exitCode}) -
const
Properties
- code → String
-
The help topic and the JSON code (
ws-conflict).final - description → String
-
Why it matters and what to do, at length (the help page).
final
- effectiveExitCode → int
-
The exit code a run with this message ends with (at least).
no setter
- exitCode → int?
-
The exit code it forces, when not the level's (ReportExitCode.decision
for a decision about uncommitted work).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helpTopic → HelpTopic
-
The help topic
<tool> help <code>: the summary, the description, where it is listed and the exit code, and every option at length.no setter - label → String
-
The block's first word (
CONFLICT).final - level → MessageLevel
-
final
-
options
→ List<
MessageOption> -
The options that resolve it, in the order they are offered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → String
-
One line: when it is raised (the topics list, the help page's head).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
raise(
{String? repository, String? branch, required String finding, List< ReportEvidence> evidence = const [], String? state, Map<String, String> values = const {}, Map<String, String> explanations = const {}, List<String> ? offer}) → ReportMessage -
A message of this definition about
repository. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited