ImageSpanRecorder class
Records an Android-parity image.load span for a single image resolution.
Starts the span and ends it with image.source / image.load.status.
Child HTTP spans nest under it by receiving parentContext explicitly —
either passed directly (see VuNetworkImage) or via
runWithImageLoadContext (see the cached_network_image adapter).
Constructors
- ImageSpanRecorder.start({required String url, String? modelType, String? screenName})
-
Starts an
image.loadspan forurl.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEnded → bool
-
Whether end has already been called.
no setter
- parentContext → Context
-
Parent Context for child spans of this image load.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → Span
-
final
Methods
-
end(
{String? status}) → void -
Ends the span with
status(defaults to success if not previously set). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
Object error, [StackTrace? stackTrace]) → void - Records a load failure. Does not end the span — call end.
-
setSource(
String source) → void -
Sets
image.source(memory/network/disk_cache). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited