Resource class

Constructors

Resource({required String url})
Resource.fromJS(Resource _wrapped)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJS → Resource
no setter
url String
The URL of the resource.
getter/setter pair

Methods

getContent() Future<GetContentResult>
Gets the content of the resource. returns A function that receives resource content when the request completes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setContent(String content, bool commit) Future<Map?>
Sets the content of the resource. content New content of the resource. Only resources with the text type are currently supported. commit True if the user has finished editing the resource, and the new content of the resource should be persisted; false if this is a minor change sent in progress of the user editing the resource. returns A function called upon request completion.
toString() String
A string representation of this object.
inherited

Operators

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