Rule class

A check tarpit runs on testWidgets bodies.

Constructors

Rule({required String id, required Severity severity, required String title, required String why, required String fix})
Creates a rule description.
const

Properties

fix → String
What to do instead.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable kebab-case id, used in suppressions and machine output.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity → Severity
Severity when the pattern is awaited directly by the test body.
final
title → String
One line summary.
final
why → String
Why the pattern hangs or fails a widget test.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited