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.new({@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
hasDefaultSetting bool

Available on LabelValueDefinition, provided by the $LabelValueDefinitionExtension extension

Returns true if defaultSetting is not null, otherwise false.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNotDefaultSetting bool

Available on LabelValueDefinition, provided by the $LabelValueDefinitionExtension extension

Returns true if defaultSetting is null, otherwise false.
no setter
hasNotUnknown bool

Available on LabelValueDefinition, provided by the $LabelValueDefinitionExtension extension

Returns true if this object has not unknown objects, otherwise false.
no setter
hasUnknown bool

Available on LabelValueDefinition, provided by the $LabelValueDefinitionExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
identifier String
The value of the label being defined. Must only include lowercase ascii and the '-' character (a-z-+).
no setterinherited
isAdultOnly bool

Available on LabelValueDefinition, provided by the $LabelValueDefinitionExtension extension

Returns true or false from adultOnly.
no setter
isNotAdultOnly bool

Available on LabelValueDefinition, provided by the $LabelValueDefinitionExtension extension

Returns negated true or false from adultOnly.
no setter
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