deleteUser method

Future<void> deleteUser()

Deletes the current user.

As a result, the user will be logged out and state will be set to null.

Implementation

Future<void> deleteUser() async {
  await userDataSource.deleteUser(state!);

  state = null;
}