MockConfig class

Parsed representation of a mock.yaml file.

Constructors

MockConfig({required String sourcePath, required List<MockRoute> routes, required Map<String, MockModelDefinition> models, required Map<String, MockStoreDefinition> stores, required int? seed})
Creates a parsed mock configuration.

Properties

hashCode int
The hash code for this object.
no setterinherited
models Map<String, MockModelDefinition>
Reusable model definitions keyed by model name.
final
routes List<MockRoute>
Route definitions loaded from the YAML document.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int?
Optional deterministic seed for generated data.
final
sourcePath String
Absolute or normalized source path of the loaded YAML file.
final
stores Map<String, MockStoreDefinition>
Stateful stores keyed by store name.
final

Methods

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