WritingMistake class Null safety

Object that stores information about a single writing mistake.

Constructors

WritingMistake({required String message, required int offset, required int length, required String issueType, required String issueDescription, required List<String> replacements, required String shortMessage, required Context context})
Object that stores information about a single writing mistake.

Properties

context Context
Context of the error, i.e. the error and some text to the left and to the left.
final
hashCode int
The hash code for this object.
read-onlyinherited
issueDescription String
Description of the issueType.
final
issueType String
The type of mistake.
final
length int
Length of the mistake after the offset.
final
message String
A brief description of the mistake.
final
offset int
Position of the beginning of the mistake.
final
replacements List<String>
A list of suggestions for replacing the mistake.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shortMessage String
An optional shorter version of 'message'. ,
final

Methods

copyWith({required int offset, required int length, required String issueType, required String issueDescription, required String message, required List<String> replacements, required String shortMessage, required Context context}) WritingMistake
Copies the object with the specified values changed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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