UsersShared class abstract
This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
Constructs a UsersShared object
constfactory
-
Creates a UsersShared object from JSON object
factory
Properties
-
copyWith
→ $UsersSharedCopyWith<
UsersShared> -
Create a copy of UsersShared
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- requestId → int
-
Identifier of the request
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
users
→ List<
SharedUser> -
Identifiers of the shared users. These numbers may have more than 32
significant bits and some programming languages may have
difficulty/silent defects in interpreting them. But they have at most 52
significant bits, so 64-bit integers or double-precision float types are
safe for storing these identifiers. The bot may not have access to the
users and could be unable to use these identifiers, unless the users are
already known to the bot by some other means.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_UsersShared value)) → TResult -
Available on UsersShared, provided by the UsersSharedPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_UsersShared value)?) → TResult? -
Available on UsersShared, provided by the UsersSharedPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_UsersShared value)?, {required TResult orElse()}) → TResult -
Available on UsersShared, provided by the UsersSharedPatterns extension
A variant ofmapthat fallback to returningorElse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this UsersShared to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited