getValidationErrors Method
Returns a list of validation errors for this instance.
A TextStyleSettings object may contain values that are invalid in all contexts. If this method returns any error strings, using the settings will likely result in rendering failures or runtime exceptions.
This method only checks for universally invalid values. Additional domain-specific validation may be required depending on the context in which these settings are used.
getValidationErrors(): string[]
@returns An array of error strings describing the invalid values, or an empty array if the settings are valid.
Returns - string[]
An array of error strings describing the invalid values, or an empty array if the settings are valid.
Defined in
Last Updated: 03 September, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.