FormMediaValue class

Class for values when handling media in forms.

Specify the media type in type with FormMediaType. Specify the actual path in uri.

Since mutual conversion to Json is possible with FormMediaValue.fromJson or toJson, the data can be saved as is.

フォームでメディアを取り扱うときの値用のクラス。

typeにメディアのタイプをFormMediaTypeで指定します。uriに実際のパスを指定します。

FormMediaValue.fromJsontoJsonでJsonに相互変換が可能なので、このままデータとして保存することができます。

Available Extensions
Annotations

Constructors

FormMediaValue({FormMediaType type = FormMediaType.image, Uri? uri})
Class for values when handling media in forms.
factory
FormMediaValue.fromJson(Map<String, Object?> map)
FormMediaValue from the Json map map.
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
type FormMediaType
Specify the media type with FormMediaType.
final
uri Uri?
Actual path.
final

Methods

copyWith({FormMediaType? type, Uri? uri}) FormMediaValue
Create another FormMediaValue by copying the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Convert FormMediaValue to a Json map.
toString() String
A string representation of this object.
inherited

Operators

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