Info class abstract

Available extensions
Annotations
  • @freezed

Constructors

Info.new({@Default('com.atproto.sync.subscribeRepos#info') String $type, @InfoNameConverter() required InfoName name, String? message, Map<String, dynamic>? $unknown})
const
factory
Info.fromJson(Map<String, Object?> json)
factory

Properties

$type String
no setterinherited
$unknown Map<String, dynamic>?
no setterinherited
copyWith → $InfoCopyWith<Info>
Create a copy of Info with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasMessage bool

Available on Info, provided by the InfoExtension extension

no setter
hasNotMessage bool

Available on Info, provided by the InfoExtension extension

no setter
message String?
no setterinherited
name InfoName
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_Info value)) → TResult

Available on Info, provided by the InfoPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_Info value)?) → TResult?

Available on Info, provided by the InfoPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_Info value)?, {required TResult orElse()}) → TResult

Available on Info, provided by the InfoPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String $type, InfoName name, String? message, Map<String, dynamic>? $unknown)?, {required TResult orElse()}) → TResult

Available on Info, provided by the InfoPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Info to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String $type, InfoName name, String? message, Map<String, dynamic>? $unknown)) → TResult

Available on Info, provided by the InfoPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String $type, InfoName name, String? message, Map<String, dynamic>? $unknown)?) → TResult?

Available on Info, provided by the InfoPatterns extension

A variant of when that fallback to returning null

Operators

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

Static Methods

validate(Map<String, dynamic> object) bool

Constants

knownProps → const List<String>