Model class
The main container class to hold the data model. Returned from the buildModel function.
Constructors
- Model({String rootDir = '.'})
- This constructor is not meant to be used directly. Use the buildModel function instead.
Properties
-
edges
↔ List<
Edge> -
Imports and exports are represented as edges in a directed graph.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- metrics ↔ Metrics?
-
Stores global metrics.
getter/setter pair
-
nodes
↔ Map<
String, Node> -
A map of nodes (Dart files).
getter/setter pair
- rootDir ↔ String
-
All node id paths are relative to the root directory.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subgraphs
↔ List<
Subgraph> -
A list of subgraphs which represent subfolders.
getter/setter pair
Methods
-
getOutput(
OutputFormat format) → String - Returns the string representation of the model depending on the OutputFormat.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDirectedGraph(
) → DirectedGraph< String> -
Converts a Model to a
DirectedGraph
from thedirected_graph
library. May be useful for further analysis of the dependency graph. -
toJson(
) → Map< String, dynamic> - Returns this object in JSON format.
-
toString(
) → String -
Returns this object in dot format.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited