ZResExt<T> extension
Extension that provides utility methods on ZRes to improve the end-user experience.
- on
-
- ZRes<
T>
- ZRes<
Properties
-
issueMessages
→ List<
String> ? -
Available on ZRes<
Returns the list of localized issue messages if the result is an error, orT> , provided by the ZResExt extensionnull
if the result is a success.no setter - issueSummary → String?
-
Available on ZRes<
Returns the list of localized issue messages joined by newline if the result is an error, orT> , provided by the ZResExt extensionnull
if the result is a success.no setter
Methods
-
getMessagesFor(
String path) → List< String> ? -
Available on ZRes<
Returns the list of localized issue messages for the givenT> , provided by the ZResExt extensionpath
, ornull
if no matching issues are found. -
getRawIssuesFor(
String path) → ZIssues? -
Available on ZRes<
Returns the list of ZIssues for the givenT> , provided by the ZResExt extensionpath
, ornull
if no matching issues are found. -
getSummaryFor(
String path, {bool includePath = false}) → String? -
Available on ZRes<
Returns localized issue messages joined by a newline for the givenT> , provided by the ZResExt extensionpath
, ornull
if no matching issues are found.