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
-
- Object
- ModelFieldValue<
Uri> - ModelImageUri
- Implemented types
- Available extensions
- Annotations
Constructors
- ModelImageUri([Uri? value])
-
Define the field as an image URI.
constfactory
- 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.
constfactory
- ModelImageUri.parse([String? value])
-
Define the field as an image URI.
constfactory
Properties
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.