NewType<T> class
Helper for implementing a "new-type" idiom.
- Implementers
- AccessTokenSecret
- ApnsDeviceToken
- ApnsVoipDeviceToken
- AttachmentId
- BlocklistCursor
- BlocklistReason
- ChatCallDeviceId
- ChatCallRoomJoinLink
- ChatContactFavoritePosition
- ChatContactId
- ChatContactsCursor
- ChatDirectLinkSlug
- ChatFavoritePosition
- ChatId
- ChatItemId
- ChatItemsCursor
- ChatMembersCursor
- ChatMessageText
- ChatName
- ConfirmationCode
- FavoriteChatContactsCursor
- FavoriteChatsCursor
- FcmRegistrationToken
- IncomingChatCallsCursor
- IpAddress
- PreciseDateTime
- PreciseDateTime
- RecentChatsCursor
- RefreshTokenSecret
- SessionId
- SessionVersion
- ThumbHash
- 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 a 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