Saves the account name and the credentials.
final Future<void> Function(String name, Map<String, String> credentials) onSave;