onTapCallback property

  1. @JsonKey.new(name: 'on_tap_callback')
OnTapCallback? get onTapCallback
inherited

Fires a host callback when the image is tapped, instead of the SDK's default zoomable full-screen preview. Use this when the host wants per-image-kind behaviour — e.g. opening a viewer with share / report / delete actions for a generated design, or pushing a dedicated result page for a try-on. Shimmer placeholders (loading=true) ignore this and stay non-tappable.

Implementation

bool get loading;/// Fires a host callback when the image is tapped, instead of the
/// SDK's default zoomable full-screen preview. Use this when the
/// host wants per-image-kind behaviour — e.g. opening a viewer
/// with share / report / delete actions for a generated design, or
/// pushing a dedicated result page for a try-on. Shimmer
/// placeholders (loading=true) ignore this and stay non-tappable.
@JsonKey(name: 'on_tap_callback') OnTapCallback? get onTapCallback;