Nux class

A new user experiences (NUX) storage object

https://atprotodart.com/docs/lexicons/app/bsky/actor/defs#nux

Available extensions
Annotations
  • @freezed

Constructors

Nux.new({@Default(appBskyActorDefsNux) @JsonKey(name: r'$type') String $type, required String id, required bool completed, String? data, DateTime? expiresAt, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
Nux.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
completed bool
no setterinherited
copyWith → $NuxCopyWith<Nux>
no setterinherited
data String?
Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.
no setterinherited
expiresAt DateTime?
The date and time at which the NUX will expire and should be considered completed.
no setterinherited
hasData bool

Available on Nux, provided by the $NuxExtension extension

Returns true if data is not null, otherwise false.
no setter
hasExpiresAt bool

Available on Nux, provided by the $NuxExtension extension

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

Available on Nux, provided by the $NuxExtension extension

Returns true if data is null, otherwise false.
no setter
hasNotExpiresAt bool

Available on Nux, provided by the $NuxExtension extension

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

Available on Nux, provided by the $NuxExtension extension

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

Available on Nux, provided by the $NuxExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
id String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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