IntlResourceContent class

A internationalized ResourceContent

Constructors

IntlResourceContent(String locale, Resource resource, [String? content])

Properties

hasContent bool
Returns true if has content/body.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isLoaded bool
Returns true if loaded.
no setterinherited
isLoadedWithError bool
Returns true if loaded with error.
no setterinherited
locale String
final
onLoad → EventStream<String?>
Notifies events when load is completed.
finalinherited
resource → Resource?
The resource (with Uri).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri?
The Resource.uri.
no setterinherited
uriFileExtension String?
Returns uri file extension.
no setterinherited
uriMimeType → MimeType?
Returns a MimeType based into the uri file name extension.
no setterinherited
uriResolved Future<Uri?>
Return resolved Uri from Resource.uriResolved.
no setterinherited

Methods

getContent() Future<String?>
Returns the content after resolve it.
inherited
getContentIfLoaded() String?
Returns the content if isLoaded.
inherited
load() Future<void>
Triggers content load.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset and disposes any loaded content.
inherited
resolveURL(String url) Future<Uri?>
Resolves url using this ResourceContent as reference (base Uri).
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited