RepoInfo constructor

const RepoInfo({
  1. required String handle,
  2. required String did,
  3. required Map<String, dynamic> didDoc,
  4. required List<String> collections,
  5. @JsonKey(name: 'handleIsCorrect') @Default(false) bool hasCorrectHandle,
})

Creates a new instance of RepoInfo.

All parameters are required.

Implementation

const factory RepoInfo({
  /// The handle identifier of the repository.
  required String handle,

  /// The DID (Decentralized Identifier) of the repository.
  required String did,

  /// The parsed DID document.
  required Map<String, dynamic> didDoc,

  /// A list of collections included in the repository.
  required List<String> collections,

  /// A boolean value indicating if the handle is correct.
  @JsonKey(name: 'handleIsCorrect') @Default(false) bool hasCorrectHandle,
}) = _RepoInfo;