PassportElementError class abstract
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user.
Constructors
- PassportElementError({required String source, required PassportType type})
-
Creates a new PassportElementError object.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
Error source
final
- type → PassportType
-
The section of the user's Telegram Passport which has the error
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a PassportElementError to a Map for JSON encoding.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited