The Resource object provides the content of a local or remote file as a string. This can be used to easily process the content of text files or provide base64-encoded image data.
This property holds the most recently occurred error or Resource.NoError if no error occurred. If the same error occurs multiple times this property does not change. Use the errorOccurred() signal to detect multiple occurrences of the same error.
This property holds the current human readable error string corresponding to the current value in the error property. It may include additional information such as failure reasons or locations.
This property holds the name of the resource file to read. It can be a full URL (including remote URLs with the http scheme) or a path relative to storage and its path on the storage.
This enumeration describes all errors which can occur in Resource objects. The most recently occurred error is stored in the error property.
||No error occurred or was detected.|
||Resource file not found.|
||File can’t be opened for reading.|
||File size exceeds internal limits.|