buildIcon method

Widget buildIcon()

buildIcon returns the icon icon widget that best represents the event.

Implementation

Widget buildIcon() {
  return Icon(
    type == FlutsterTestEventType.screenShot
        ? Icons.camera
        : type == FlutsterTestEventType.tap
            ? Icons.mouse
            : type == FlutsterTestEventType.key
                ? Icons.text_fields
                : Icons.error,
  );
}