onError abstract method Null safety

Authentication onError(
  1. dynamic onError(
    1. AuthenticationError
    )
)

Specifies the object that will be invoked if the authentication failed.

IMPORTANT
Providing the onError is required.

Params:

Returns: an Authentication object.

Implementation

Authentication onError(Function(AuthenticationError) onError);