copyWith method

FormMediaValue copyWith({
  1. FormMediaType? type,
  2. Uri? uri,
})

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,
  );
}