Annotation constructor

const Annotation({
  1. required String id,
  2. @Default(null) String? author,
  3. @Default(null) int? created,
  4. @Default(null) int? modified,
  5. @Default(null) String? text,
  6. @Default({}) Map<String, String> markdown,
  7. @Default(null) String? location,
  8. @Default(null) bool? confidential,
  9. @Default({}) Set<CodeStub> tags,
  10. @Default(null) String? encryptedSelf,
})

Implementation

const factory Annotation({
	required String id,
	@Default(null) String? author,
	@Default(null) int? created,
	@Default(null) int? modified,
	@Default(null) String? text,
	@Default({}) Map<String, String> markdown,
	@Default(null) String? location,
	@Default(null) bool? confidential,
	@Default({}) Set<CodeStub> tags,
	@Default(null) String? encryptedSelf,
}) = _Annotation;