RuleState class final
Describes the state of an analysis rule.
Constructors
- RuleState.deprecated({Version? since, String? replacedBy})
-
Initializes a state that marks an analysis rule as deprecated.
const
- RuleState.experimental({Version? since})
-
Initializes a state that marks an analysis rule as experimental.
const
- RuleState.internal({Version? since})
-
Initializes a state that marks an analysis rule as for internal (Dart SDK)
use only.
const
- RuleState.removed({Version? since, String? replacedBy})
-
Initializes a state that identifies an analysis rule as having been removed.
const
- RuleState.stable({Version? since})
-
Initializes a state that marks an analysis rule as stable.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDeprecated → bool
-
Whether this state marks an analysis rule as deprecated.
no setter
- isExperimental → bool
-
Whether this state marks an analysis rule as experimental.
no setter
- isInternal → bool
-
Whether this state marks an analysis rule as internal.
no setter
- isRemoved → bool
-
Whether this state marks an analysis rule as removed.
no setter
- label → String
-
A short description, suitable for displaying in documentation or a
diagnostic message.
no setter
- replacedBy → String?
-
The optional name of an analysis rule which replaces the rule with this
state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- since → Version?
-
An Optional Dart language version that identifies the start of this state.
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