copyWith method
Create another FormMediaValue by copying the value.
Specify the media type in type
with FormMediaType. Specify the actual path in uri
.
値をコピーして別のFormMediaValueを作成します。
type
にメディアのタイプをFormMediaTypeで指定します。uri
に実際のパスを指定します。
Implementation
FormMediaValue copyWith({
FormMediaType? type,
Uri? uri,
}) {
return FormMediaValue(
type: type ?? this.type,
uri: uri ?? this.uri,
);
}