UploadButtonBuilder typedef
UploadButtonBuilder =
Widget Function(BuildContext context, Widget icon, VoidCallback? onPressed, bool hasError)
Builds the upload button of a file field around icon; onPressed is null when the field is disabled.
Implementation
typedef UploadButtonBuilder =
// ignore: avoid_positional_boolean_parameters, the signature is part of the contract used by the apps.
Widget Function(BuildContext context, Widget icon, VoidCallback? onPressed, bool hasError);