LabelValueDefinition class

Declares a label value and its expected interpretations and behaviors.

https://atprotodart.com/docs/lexicons/com/atproto/label/defs#labelvaluedefinition

Available extensions
Annotations
  • @freezed

Constructors

LabelValueDefinition({@Default(comAtprotoLabelDefsLabelValueDefinition) @JsonKey(name: r'$type') String $type, required String identifier, @ULabelValueDefinitionSeverityConverter() required ULabelValueDefinitionSeverity severity, @ULabelValueDefinitionBlurConverter() required ULabelValueDefinitionBlur blurs, @ULabelValueDefinitionDefaultSettingConverter() ULabelValueDefinitionDefaultSetting? defaultSetting, @Default(false) bool adultOnly, @LabelValueDefinitionStringsConverter() required List<LabelValueDefinitionStrings> locales, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
LabelValueDefinition.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
adultOnly bool
Does the user need to have adult content enabled in order to configure this label?
no setterinherited
blurs ULabelValueDefinitionBlur
What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.
no setterinherited
copyWith → $LabelValueDefinitionCopyWith<LabelValueDefinition>
no setterinherited
defaultSetting ULabelValueDefinitionDefaultSetting?
The default setting for this label.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
identifier String
The value of the label being defined. Must only include lowercase ascii and the '-' character (a-z-+).
no setterinherited
locales List<LabelValueDefinitionStrings>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity ULabelValueDefinitionSeverity
How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited