GiancarloCode / form_bloc

🔥 Dart and Flutter Package 🔥 Easy Form State Management using BLoC pattern 🔥 Wizard/stepper forms, asynchronous validation, dynamic and conditional fields, submission progress, serialization and more! 🔥
https://GiancarloCode.github.io/form_bloc/
466 stars 200 forks source link

SYNC ToJson() #296

Open AmriZakariya opened 2 years ago

AmriZakariya commented 2 years ago

Hello please how can i sync toJson function so that return file insted of Future

toJson: (value) async { MultipartFile file = await MultipartFile.fromFile(value?.path ?? "",filename: value?.name ?? ""); return file ;

  },
vasilich6107 commented 1 year ago

https://github.com/GiancarloCode/form_bloc/pull/312#issuecomment-1164240179