form_bloc icon indicating copy to clipboard operation
form_bloc copied to clipboard

How to get all fieldBlocs?

Open johnadvincula-ada opened this issue 3 years ago • 1 comments

I want to get fields blocs to add errors dynamically specially when I got validation errors on backend

johnadvincula-ada avatar Mar 10 '22 09:03 johnadvincula-ada

you can access them throw state:

 state.fieldBlocs()?.forEach((name, filedBloc) {
      filedBloc.addError("error");
    });

WahdanZ avatar Mar 12 '22 10:03 WahdanZ