FilePathAnnotation class

A file path annotation.

Implemented types
Annotations
  • @immutable

Constructors

FilePathAnnotation({required String text, required FilePath filePath, required int startIndex, required int endIndex})
Creates a FilePathAnnotation.
const
FilePathAnnotation.fromJson(Map<String, dynamic> json)
Creates a FilePathAnnotation from JSON.
factory

Properties

endIndex int
The end index in the text.
final
filePath FilePath
The file path details.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIndex int
The start index in the text.
final
text String
The text being annotated.
final
type String
The type of this annotation.
no setteroverride

Methods

copyWith({String? text, FilePath? filePath, int? startIndex, int? endIndex}) FilePathAnnotation
Creates a copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

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