ApplicationRuntimeScanner class
A default implementation of RuntimeScanner that supports scanning, logging, and context tracking.
This scanner allows optional logging hooks to handle messages during the scanning process. If no callbacks are provided, messages are buffered internally and can be retrieved later.
Example
final scan = DefaultRuntimeScan(
onInfo: (msg) => print('[INFO] $msg'),
onWarning: (msg) => print('[WARN] $msg'),
onError: (msg) => print('[ERR] $msg'),
);
The logs are tagged with the current _package
name when set, helping
identify the origin of messages during multi-package scans.
- Implemented types
Constructors
- ApplicationRuntimeScanner({OnLogged? onInfo, OnLogged? onWarning, OnLogged? onError})
- A default implementation of RuntimeScanner that supports scanning, logging, and context tracking.
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
-
scan(
String outputFolder, RuntimeScannerConfiguration configuration, {Directory? source}) → Future< RuntimeScannerSummary> -
Defines the contract for a reflection scanner that processes Dart source
files, extracts metadata, and optionally persists output.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited