ZResExt<T> extension

Extension that provides utility methods on ZRes to improve the end-user experience.

on

Properties

issueMessages List<String>?

Available on ZRes<T>, provided by the ZResExt extension

Returns the list of localized issue messages if the result is an error, or null if the result is a success.
no setter
issueSummary String?

Available on ZRes<T>, provided by the ZResExt extension

Returns the list of localized issue messages joined by newline if the result is an error, or null if the result is a success.
no setter

Methods

getMessagesFor(String path) List<String>?

Available on ZRes<T>, provided by the ZResExt extension

Returns the list of localized issue messages for the given path, or null if no matching issues are found.
getRawIssuesFor(String path) ZIssues?

Available on ZRes<T>, provided by the ZResExt extension

Returns the list of ZIssues for the given path, or null if no matching issues are found.
getSummaryFor(String path, {bool includePath = false}) String?

Available on ZRes<T>, provided by the ZResExt extension

Returns localized issue messages joined by a newline for the given path, or null if no matching issues are found.