NewType<T> class

Helper for implementing a "new-type" idiom.

Implementers
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<double>, provided by the NewTypeToExactString extension

Converts this NewType to a String with no scientific notation.
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