AnalyzedFile class

Represents a file that is within some context currently under analysis.

This was created to be type-safe.

Annotations
  • @freezed
  • @immutable

Constructors

AnalyzedFile(Uri fileUri, {required Uri contextRoot})
const
factory
AnalyzedFile.fromJson(Map<String, dynamic> json)
Create AnalyzedFile from json.
factory

Properties

contextRoot Uri
no setterinherited
copyWith → $AnalyzedFileCopyWith<AnalyzedFile>
no setterinherited
fileUri Uri
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isDartFile bool
Check if file ends in .dart
no setter
isSidecarYamlFile bool
Check if file is sidecar.yaml file at context root
no setter
path String
Absolute file path
no setter
relativePath String
File path relative to contextRoot
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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