NextcloudConfig.authenticated constructor

NextcloudConfig.authenticated({
  1. required String serverUrl,
  2. required String username,
  3. required String password,
})

Implementation

factory NextcloudConfig.authenticated({
  required String serverUrl,
  required String username,
  required String password,
}) {
  return NextcloudConfig(
    baseUrl:
        '$serverUrl/remote.php/dav/files/${Uri.encodeComponent(username)}',
    username: username,
    password: password,
  );
}