init(title:subtitle:synonyms:image:)

Creates a display representation whose image is produced lazily by the given closure.

Declaration

init(title: LocalizedStringResource, subtitle: LocalizedStringResource? = nil, synonyms: [LocalizedStringResource] = [], image: @escaping  @Sendable () async throws -> DisplayRepresentation.Image?)