VeryGoodOpenSource / formz

A unified form representation in Dart used at Very Good Ventures 🦄
https://pub.dev/packages/formz
MIT License
392 stars 39 forks source link

FormzSubmissionStatus #92

Closed iHamza7 closed 1 year ago

iHamza7 commented 1 year ago

This is my class and constructor 1

whenever i pass the arguments in Formz.validate function i am getting error in status variable.

2

error The argument type 'bool' can't be assigned to the parameter type 'FormzSubmissionStatus?'.

scarletteliza commented 1 year ago

Hi, thanks for opening an issue! This was a breaking change introduced in v0.5.0-dev.1: https://github.com/VeryGoodOpenSource/formz/blob/main/CHANGELOG.md#050-dev1. The Formz.validate method returns a boolean now, which indicates whether or not the fields are valid.

iHamza7 commented 1 year ago

Thank you very much