onError property

void Function(Object error, StackTrace? stackTrace)? onError
final

Called once when the image fails to load. Provides the error and stack trace for logging purposes.

Implementation

final void Function(Object error, StackTrace? stackTrace)? onError;