NewType<T> class
Helper for implementing a "new-type" idiom.
- Implementers
- AccessTokenSecret
- AccessTokenSecretInput
- ApnsDeviceToken
- ApnsVoipDeviceToken
- AttachmentId
- BlocklistCursor
- BlocklistReason
- ChatCallDeviceId
- ChatCallRoomJoinLink
- ChatContactFavoritePosition
- ChatContactId
- ChatContactsCursor
- ChatFavoritePosition
- ChatId
- ChatItemId
- ChatItemsCursor
- ChatMembersCursor
- ChatMessageText
- ChatName
- ConfirmationCode
- CountryCode
- Currency
- DirectLinksCursor
- DirectLinkSlug
- DonationId
- FavoriteChatContactsCursor
- FavoriteChatsCursor
- FcmRegistrationToken
- IncomingChatCallsCursor
- InvoiceFile
- IpAddress
- LockIdentifier
- MonetizationSettingsCursor
- OperationCancellationReason
- OperationDepositMethodId
- OperationDepositSecret
- OperationId
- OperationNum
- OperationReason
- OperationsCursor
- Percentage
- PreciseDateTime
- PreciseDateTime
- RecentChatsCursor
- RefreshTokenSecret
- RefreshTokenSecretInput
- SessionId
- SessionVersion
- SiteDomain
- Sum
- ThumbHash
- Url
- UserAffiliatedNum
- UserAgent
- UserBio
- UserEmail
- UserId
- UserLogin
- UserName
- UserNum
- UserPassword
- UserPhone
- UsersCursor
- UserTextStatus
- Version
- Available extensions
Constructors
- NewType(T val)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- obscured → String
-
Available on NewType, provided by the ObscuredNewTypeExtension extension
Returns this value as an obscured string.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- val → T
-
Actual value wrapped by this NewType.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPlainString(
) → String -
Available on NewType<
Converts this NewType to a String with no scientific notation.double> , provided by the NewTypeToExactString extension -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator <(
NewType< T> ? other) → bool -
Available on NewType<
T> , provided by the NewTypeComparable extension -
operator <=(
NewType< T> ? other) → bool -
Available on NewType<
T> , provided by the NewTypeComparable extension -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
NewType< T> ? other) → bool -
Available on NewType<
T> , provided by the NewTypeComparable extension -
operator >=(
NewType< T> ? other) → bool -
Available on NewType<
T> , provided by the NewTypeComparable extension