onTap property

(void Function(void onUpdate(String filePath, FormMediaType type))?) onTap
final

Describe what to do when the form is tapped. Normally, use image_picker or file_picker to display a dialog to select a file and return the media path to onUpdate.

フォームがタップされた場合の処理を記述します。通常はimage_pickerfile_pickerを用いてファイルを選択するダイアログを表示しメディアのパスをonUpdateに返すようにします。

Implementation

final void Function(
  void Function(String filePath, FormMediaType type) onUpdate,
)? onTap;