Skip to content

comma missing in the _performActionOnAuthFacadeWithEmailAndPassword method of the sign_in_handler_state_notifier.dart class #37

Open
@aristidenholle

Description

@aristidenholle

in the _performActionOnAuthFacadeWithEmailAndPassword method of the sign_in_handler_state_notifier.dart class
there is a comma missing and i go in console

'(', ',', ';' or '=' expected, got '(' 125
'(', '.', <, <qualified reference expression>, '?', IDENTIFIER, get, operator or set expected, got ',' 130
'(', '.', <, <qualified reference expression>, '?', IDENTIFIER, get, operator or set expected, got '{' 131
  Future<void> _performActionOnAuthFacadeWithEmailAndPassword(
    Future<Auth> Function({
      @required EmailAddress emailAddress,
      @required Password password,
    }) there is a comma missin HERE **********************************************************************************
        forwardedCall,
  ) async {
    if (!_authProviders.emailAndPassword) {
      throw AuthProviderNotEnabled('Email and Password');
    }

    final isEmailValid = state.emailAddress.isValid();
    final isPasswordValid = state.password.isValid();

    /* Invalid email or password. Show errors and return */
    if (!isEmailValid || !isPasswordValid) {
      state = state.copyWith(
        isSubmitting: false,
        showErrorMessages: true,
        authFailureOrSuccessOption: none(),
      );
      return; // quit
    }

    state = state.copyWith(
      isSubmitting: true,
      authFailureOrSuccessOption: none(),
    );

    final auth = await forwardedCall(
      emailAddress: state.emailAddress,
      password: state.password,
    );

    // Need to check mounted
    if (mounted) {
      state = state.copyWith(
        isSubmitting: false,
        showErrorMessages: true,
        authFailureOrSuccessOption: some(auth),
      );
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions