NSNumber class

Stands for NSNumber in iOS and macOS.

Inheritance
Available extensions
Annotations
  • @NativeClass()

Constructors

NSNumber.new(dynamic value)
NSNumber.fromPointer(Pointer<Void> ptr)

Properties

CATransform3DValue CATransform3D

Available on NSValue, provided by the CATransform3DAdditions extension

no setter
CGAffineTransformValue CGAffineTransform

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter
CGPointValue CGPoint

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter
CGRectValue CGRect

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter
CGSizeValue CGSize

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter
CGVectorValue CGVector

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter
debugDescription String
Returns a string that describes the contents of the receiver for presentation in the debugger.
no setterinherited
description String
Returns a string that describes the contents of the receiver.
no setterinherited
directionalEdgeInsetsValue NSDirectionalEdgeInsets

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter
edgeInsetsValue NSEdgeInsets

Available on NSValue, provided by the NSValueGeometryExtensions extension

no setter
hash int
Returns an integer that can be used as a table address in a hash table structure.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isa Class?
Stands for isa in iOS and macOS.
no setterinherited
pointer Pointer<Void>
no setterinherited
pointValue NSPoint

Available on NSValue, provided by the NSValueGeometryExtensions extension

no setter
rangeValue NSRange

Available on NSValue, provided by the NSValueRangeExtensions extension

no setter
raw ↔ dynamic
getter/setter pairinherited
rectValue NSRect

Available on NSValue, provided by the NSValueGeometryExtensions extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeValue NSSize

Available on NSValue, provided by the NSValueGeometryExtensions extension

no setter
superclass Class
NSObjectProtocol Returns the class object for the receiver’s superclass.
no setterinherited
UIEdgeInsetsValue UIEdgeInsets

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter
UIOffsetValue UIOffset

Available on NSValue, provided by the NSValueUIGeometryExtensions extension

no setter

Methods

autorelease() NSObject
inherited
conforms({required Protocol to}) bool
Returns a Boolean value that indicates whether the receiver conforms to a given protocol.
inherited
copy() NSObject
inherited
init() NSObject
inherited
isEqual(NSObjectProtocol object) bool
Returns a Boolean value that indicates whether the receiver and a given object are equal.
inherited
isKind({required Class of}) bool
Returns a Boolean value that indicates whether the receiver is an instance of given class or an instance of any class that inherits from that class.
inherited
isMember({required Class of}) bool
Returns a Boolean value that indicates whether the receiver is an instance of a given class.
inherited
isProxy() bool
Returns a Boolean value that indicates whether the receiver does not descend from NSObject.
inherited
mutableCopy() NSObject
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
perform(SEL selector, {List? args, DispatchQueue? onQueue}) Future
Sends a specified message to the receiver asynchronously using onQueue. onQueue is DispatchQueue.main by default.
inherited
performSync<T>(SEL selector, {List? args, bool decodeRetVal = true}) → T
Sends a specified message to the receiver and returns the result of the message.
inherited
responds({required SEL to}) bool
Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message.
inherited
self() NSObjectProtocol
Returns the receiver.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited