LoggingImageGenerator class

A delegating image generator that logs operations to a Logger.

This is an experimental feature.

Inheritance
Available extensions

Constructors

LoggingImageGenerator(ImageGenerator innerGenerator, {required Logger logger})
Creates a new LoggingImageGenerator.

Properties

hashCode → int
The hash code for this object.
no setterinherited
innerGenerator → ImageGenerator
The inner generator to delegate to.
finalinherited
jsonEncoder ↔ JsonEncoder
The JsonEncoder used to serialize log data.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

asBuilder() → ImageGeneratorBuilder

Available on ImageGenerator, provided by the ImageGeneratorBuilderImageGeneratorExtensions extension

Creates a new ImageGeneratorBuilder using this generator as its inner generator.
dispose() → void
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
inherited
generate({required ImageGenerationRequest request, ImageGenerationOptions? options, CancellationToken? cancellationToken}) → Future<ImageGenerationResponse>
Generates images based on the given request.
override
getService<T>({Object? key}) → T?
Gets a service of the specified type.
inherited
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