StubDriver class abstract

Contract for stub template I/O in the PluginInstaller DSL.

Mirrors the three-method surface of the static StubLoader class so that InstallContext can hold an instance field and tests can inject a FakeStubDriver with in-memory fixtures without touching the filesystem.

Usage

final driver = RealStubDriver();
final content = driver.load('model');
final result = driver.make('model', {'className': 'Monitor'});
Implementers

Constructors

StubDriver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load(String name, {List<String>? searchPaths}) String
Load a .stub file by name and return its raw content.
make(String name, Map<String, String> replacements) String
Load a stub and replace all placeholders in one step.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace(String stub, Map<String, String> replacements) String
Replace all {{ key }} placeholders in stub with values from replacements.
toString() String
A string representation of this object.
inherited

Operators

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