canProgress property

CanProgress canProgress
final

A handler to check if the user is allowed to progress to the next page. If returned value is true, the page will progress to the next page, otherwise the page will not progress. In order to make it work properly with TextFormField, you should place setState in the onChanged callback of the TextFormField.

@Default true

canProgress: (int page) {
    if (page == 0 && _textFieldController1.text.isEmpty) {
      return false;
    } else if (page == 1 && _textFieldController2.text.isEmpty) {
      return false;
    } else {
      return true;
   }
}

Implementation

final CanProgress canProgress;