


# submit method




    *[<Null safety>](https://dart.dev/null-safety)*



- @[override](https://api.flutter.dev/flutter/dart-core/override-constant.html)

[FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;void> submit
()








## Implementation

```dart
@override
FutureOr<void> submit() async {
  final WyattForm form = formRepository.accessForm(formName);
  const error = '`submit()` is not implemented for BaseEditAccountCubit, '
      'please use `updateEmail()` or `updatePassword()`.';
  emit(
    EditAccountState(
      form: form,
      errorMessage: error,
      status: FormStatus.submissionFailure,
    ),
  );
}
```







