ResourceContentInfo extension type
2.x's ResourceContentInfo: resource contents with either text or
blob (base64). A type as well as a constructor, so 2.x code that names
it (List<ResourceContentInfo>) keeps compiling; the value is the
TextResourceContents or BlobResourceContents itself.
- on
- Implemented types
Constructors
-
ResourceContentInfo({required String uri, String? mimeType, String? text, String? blob, Map<
String, Object?> ? meta}) -
ResourceContentInfo.fromJson(Map<
String, dynamic> json) - Reads resource contents JSON (text or blob).
- ResourceContentInfo.of(ResourceContents contents)
- Any resource contents viewed under the 2.x name.
Properties
- blob → String?
-
blob, on the kinds that carry it.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType → String?
-
mimeType, on the kinds that carry it.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
text, on the kinds that carry it.no setterinherited - uri → String
-
uri.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The JSON form of this value.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited