FilePicker constructor
const
FilePicker({
- Key? key,
- required BuildContext context,
- required FileData fileData,
- required dynamic onSelected(
- FileData fileData
- dynamic onOtherDeviceSelected(
- FileData fileData
- dynamic onCancel()?,
- dynamic onDeleted(
- FileData fileData
- dynamic onView(
- FileData fileData
- bool camera = true,
- bool gallery = true,
- bool document = true,
- bool otherDevice = false,
- bool view = true,
- bool delete = true,
- bool crop = true,
- int? maxFileSizeInMb,
- bool cropOnlySquare = false,
- String cropperToolbarTitle = Files.cropperToolbarTitle,
- Color cropperToolbarColor = Files.cropperToolbarColor,
- Color cropperToolbarWidgetsColor = Files.cropperToolbarWidgetsColor,
- List<
String> ? allowedExtensions, - double? width,
- double? height,
- Widget? child,
Implementation
const FilePicker(
{super.key,
required this.context,
required this.fileData,
required this.onSelected,
this.onOtherDeviceSelected,
this.onCancel,
this.onDeleted,
this.onView,
this.camera = true,
this.gallery = true,
this.document = true,
this.otherDevice = false,
this.view = true,
this.delete = true,
this.crop = true,
this.maxFileSizeInMb,
this.cropOnlySquare = false,
this.cropperToolbarTitle = Files.cropperToolbarTitle,
this.cropperToolbarColor = Files.cropperToolbarColor,
this.cropperToolbarWidgetsColor = Files.cropperToolbarWidgetsColor,
this.allowedExtensions,
this.width,
this.height,
this.child});