Tinker class

Static hooks populated by host-side integration packages.

The CLI-side TinkerCommand reads these for autocomplete + pretty-printing during the REPL loop. Integration packages (e.g. magic's MagicTinkerIntegration.install()) append to these lists in the host app's boot phase under kDebugMode.

Populated values are scoped to a single isolate's lifetime — no cross- isolate sharing. Hot-restart clears them; integrations re-populate on next install().

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

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

Static Properties

autocompleteCorpus List<String>
Autocomplete corpus seeded by integrations. The CLI-side TinkerCommand merges this with runtime vmService.getClassList() results (lazy cache).
final
casters List<TinkerCaster>
Pretty-printers for REPL output (Laravel's TinkerCaster analog). The first caster returning a non-null string wins.
final
classAliases Map<String, String>
Short-name → full-import-path map (Laravel's ClassAliasAutoloader analog). Magic populates with project facade shortcuts.
final