Mistake class
A data model class that stores information about a single writing mistake.
Constructors
Properties
- endOffset → int
-
A position of the end of this mistake.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
A length of this mistake after the offset.
final
- message → String
-
A brief description of the mistake.
final
- offset → int
-
A position of the beginning of this mistake.
final
-
replacements
→ List<
String> -
A list of suggestions for replacing this mistake.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → MistakeType
-
A type of this mistake.
final
Methods
-
copyWith(
{String? message, MistakeType? type, int? offset, int? length, List< String> ? replacements}) → Mistake - Creates a copy of this mistake with optional parameter values overridden.
-
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