TestEvent.print constructor

TestEvent.print({
  1. required int time,
  2. required int testID,
  3. required String messageType,
  4. required String message,
})

A MessageEvent indicates that a test emitted a message that should be displayed to the user.

The messageType field indicates the precise type of this message. Different message types should be visually distinguishable.

A message of type "print" comes from a user explicitly calling print().

A message of type "skip" comes from a test, or a section of a test, being skipped. A skip message shouldn't be considered the authoritative source that a test was skipped; the TestDoneEvent.skipped field should be used instead.

Implementation

factory TestEvent.print({
  required int time,
  required int testID,
  required String messageType,
  required String message,
}) = TestEventMessage;