ModelImageUri class

Define the field as an image URI.

The base value is given as value. An empty Uri is defined.

Use ModelImageUri if you want to be sure to define the image as an image URI.

フィールドを画像URIとして定義します。

ベースの値をvalueとして与えます。空のUriが定義されます。

必ず画像URIとしての定義を行いたい場合はModelImageUriを利用してください。

Inheritance
Implemented types
Available extensions
Annotations

Constructors

ModelImageUri([Uri? value])
Define the field as an image URI.
const
factory
ModelImageUri.fromJson(DynamicMap json)
Convert from json map to ModelImageUri.
factory
ModelImageUri.fromServer([Uri? value])
Used to disguise the retrieval of data from the server.
const
factory
ModelImageUri.parse([String? value])
Define the field as an image URI.
const
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Uri
Actual value.
no setteroverride

Methods

compareTo(ModelImageUri other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFormMediaValue() FormMediaValue?

Available on ModelImageUri, provided by the ModelImageUriExtensions extension

Convert to FormMediaValue.
toImageProvider([String defaultAssetURI = "assets/image.png"]) ImageProvider<Object>

Available on ModelImageUri, provided by the ModelImageUriExtensions extension

Get a ImageProvider.
toJson() DynamicMap
Methods for Json serialization.
override
toString() String
A string representation of this object.
override

Operators

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

Constants

kSourceKey → const String
Key to store the data source.
kUriKey → const String
Key to save time.
typeString → const String
Type key.