success property

Success get success

Retrieves the success result of the form submission.

Throws a StateError if the form is not in the BondFormStateStatus.submitted state.

Implementation

Success get success {
  if (successResult == null || status != BondFormStateStatus.submitted) {
    throw StateError(
        'Accessing success while form not successfully submitted');
  }
  return successResult!;
}