Object class
The base class for all Dart objects exceptnull.
BecauseObject is a root of the non-nullable Dart class hierarchy,every other non-Null Dart class is a subclass ofObject.
When you define a class, you should consider overridingtoStringto return a string describing an instance of that class.You might also need to definehashCode andoperator ==, as described in theImplementing map keyssection of thelibrary tour.
- Implementers
- Abi
- AbiSpecificInteger
- AbiSpecificIntegerMapping
- AbstractWorker
- AccessibleNodeList
- ActiveInfo
- Allocator
- Angle
- AngleInstancedArrays
- AnimatedAngle
- AnimatedBoolean
- AnimatedEnumeration
- AnimatedInteger
- AnimatedLength
- AnimatedLengthList
- AnimatedNumber
- AnimatedNumberList
- AnimatedPreserveAspectRatio
- AnimatedRect
- AnimatedString
- AnimatedTransformList
- AnimationEffectReadOnly
- AnimationEffectTimingReadOnly
- AnimationTimeline
- Array
- AsyncError
- AudioBuffer
- AudioListener
- AudioParam
- AudioParamMap
- AudioTrack
- AudioWorkletProcessor
- AuthenticatorResponse
- BackgroundFetchFetch
- BackgroundFetchManager
- BarcodeDetector
- BarProp
- BigInt
- Blob
- BluetoothRemoteGattDescriptor
- Body
- Bool
- bool
- BudgetState
- Buffer
- ButtonInputElement
- ByteBuffer
- ByteConversionSink
- ByteData
- BytesBuilder
- CacheStorage
- Canvas
- CanvasGradient
- CanvasImageSource
- CanvasPattern
- CanvasRenderingContext
- CanvasRenderingContext2D
- Capability
- CheckboxInputElement
- ChildNode
- ChunkedConversionSink
- ClassMirror
- Client
- Clients
- ClosableStringSink
- ClosureMirror
- Codec
- ColorBufferFloat
- CombinatorMirror
- Comparable
- Completer
- CompressedTextureAstc
- CompressedTextureAtc
- CompressedTextureEtc
- CompressedTextureETC1
- CompressedTexturePvrtc
- CompressedTextureS3TC
- CompressedTextureS3TCsRgb
- CompressionOptions
- ConnectionTask
- Console
- ContentType
- Converter
- Cookie
- CookieStore
- Coordinates
- Credential
- CredentialsContainer
- CredentialUserData
- Crypto
- CryptoKey
- Css
- CssClassSet
- CssRect
- CssRule
- CssStyleDeclaration
- CssStyleDeclarationBase
- CssStyleValue
- CssTransformComponent
- CssVariableReferenceValue
- Cursor
- CustomElementRegistry
- CustomStream
- DartRepresentationOf
- Datagram
- DataTransfer
- DataTransferItem
- DataTransferItemList
- DateInputElement
- DateTime
- DebugRendererInfo
- DebugShaders
- DeclarationMirror
- DefaultAsset
- DeferredLoadException
- Deprecated
- DeprecatedStorageInfo
- DeprecatedStorageQuota
- DepthTexture
- DetectedBarcode
- DetectedFace
- DetectedText
- DeviceAcceleration
- DeviceRotationRate
- Dimension
- Directory
- DirectoryReader
- DocumentOrShadowRoot
- DomError
- DomException
- DomImplementation
- DomIterator
- DomMatrixReadOnly
- DomParser
- DomPointReadOnly
- DomQuad
- DomRectList
- DomRectReadOnly
- DomStringList
- DomStringMap
- DomTokenList
- Double
- DoubleLinkedQueueEntry
- DrawBuffers
- Duration
- DynamicLibrary
- ElementStream
- ElementUpgrader
- EmailInputElement
- Endian
- Entry
- Enum
- Error
- Event
- Events
- EventSink
- EventStreamProvider
- EventTarget
- Exception
- Expando
- ExtBlendMinMax
- ExtColorBufferFloat
- ExtColorBufferHalfFloat
- ExtDisjointTimerQuery
- ExtDisjointTimerQueryWebGL2
- External
- ExtFragDepth
- ExtShaderTextureLod
- EXTsRgb
- ExtTextureFilterAnisotropic
- FaceDetector
- File
- FileList
- FileLock
- FileMode
- FileStat
- FileSystem
- FileSystemEntity
- FileSystemEntityType
- FileSystemEvent
- FileSystemException
- FileUploadInputElement
- FilterPrimitiveStandardAttributes
- Finalizable
- Finalizer
- FitToViewBox
- FixedSizeListIterator
- Float
- Float32List
- Float32x4
- Float32x4List
- Float64List
- Float64x2
- Float64x2List
- Flow
- FontFace
- FontFaceSource
- FormatException
- FormData
- Framebuffer
- Function
- FunctionTypeMirror
- Future
- FutureOr
- Gamepad
- GamepadButton
- GamepadPose
- Geolocation
- Geoposition
- GetBufferSubDataAsync
- GlobalEventHandlers
- Handle
- HashMap
- HashSet
- HasNextIterator
- Headers
- HeaderValue
- HiddenInputElement
- History
- HistoryBase
- HtmlCollection
- HtmlEscapeMode
- HtmlHyperlinkElementUtils
- HttpClient
- HttpClientBasicCredentials
- HttpClientBearerCredentials
- HttpClientCredentials
- HttpClientDigestCredentials
- HttpClientRequest
- HttpClientResponse
- HttpConnectionInfo
- HttpConnectionsInfo
- HttpDate
- HttpException
- HttpHeaders
- HttpOverrides
- HttpRequest
- HttpResponse
- HttpServer
- HttpSession
- HttpStatus
- IdbFactory
- IdleDeadline
- ImageBitmap
- ImageBitmapRenderingContext
- ImageButtonInputElement
- ImageCapture
- ImageData
- ImmutableListMixin
- Index
- InputDeviceCapabilities
- InputElementBase
- InstanceMirror
- Int8
- Int8List
- Int16
- Int16List
- Int32
- Int32List
- Int32x4
- Int32x4List
- Int64
- Int64List
- IntegerDivisionByZeroException
- InternetAddress
- InternetAddressType
- IntersectionObserver
- IntersectionObserverEntry
- Invocation
- IOException
- IOOverrides
- IOSink
- Isolate
- IsolateMirror
- IsolateSpawnException
- Iterable
- Iterator
- JS
- JSAny
- JSExport
- JsObject
- KeyboardEventStream
- KeyCode
- KeyEvent
- KeyLocation
- KeyRange
- Length
- LengthList
- LibraryDependencyMirror
- LibraryMirror
- Link
- LinkedHashMap
- LinkedHashSet
- LinkedListEntry
- List
- ListBase
- LocalDateTimeInputElement
- Location
- LocationBase
- LoseContext
- Map
- MapBase
- MapEntry
- MapView
- Match
- Matrix
- MediaCapabilities
- MediaCapabilitiesInfo
- MediaDeviceInfo
- MediaError
- MediaKeys
- MediaKeysPolicy
- MediaKeyStatusMap
- MediaKeySystemAccess
- MediaList
- MediaMetadata
- MediaSession
- MediaSettingsRange
- MemoryInfo
- MessageChannel
- Metadata
- MethodMirror
- MidiInputMap
- MidiOutputMap
- MimeType
- MimeTypeArray
- Mirror
- MirrorSystem
- MonthInputElement
- MultiStreamController
- MutableRectangle
- MutationObserver
- MutationRecord
- Native
- NativeApi
- NativeCallable
- NativeFinalizer
- NativeFunction
- NativeRuntime
- NativeType
- NavigationPreloadManager
- NavigatorAutomationInformation
- NavigatorConcurrentHardware
- NavigatorCookies
- NavigatorID
- NavigatorLanguage
- NavigatorOnLine
- NavigatorUserMediaError
- NetworkInterface
- NodeFilter
- NodeIterator
- NodeList
- NodeTreeSanitizer
- NodeValidator
- NodeValidatorBuilder
- NoncedElement
- NonDocumentTypeChildNode
- NonElementParentNode
- Null
- NullRejectionException
- NullWindowException
- num
- Number
- NumberInputElement
- NumberList
- ObjectMirror
- ObjectStore
- Observation
- Observer
- ObserverChanges
- OesElementIndexUint
- OesStandardDerivatives
- OesTextureFloat
- OesTextureFloatLinear
- OesTextureHalfFloat
- OesTextureHalfFloatLinear
- OesVertexArrayObject
- OffscreenCanvasRenderingContext2D
- Opaque
- OSError
- OutOfMemoryError
- OverconstrainedError
- Packed
- PaintRenderingContext2D
- PaintSize
- ParameterMirror
- ParentNode
- PasswordInputElement
- Path2D
- Pattern
- PaymentAddress
- PaymentInstruments
- PaymentManager
- PaymentResponse
- PerformanceEntry
- PerformanceNavigation
- PerformanceObserver
- PerformanceObserverEntryList
- PerformanceServerTiming
- PerformanceTiming
- PeriodicWave
- Permissions
- PhotoCapabilities
- Pipe
- Platform
- Platform
- Plugin
- PluginArray
- Point
- Point
- Pointer
- PointList
- PositionError
- pragma
- Presentation
- PresentationReceiver
- PreserveAspectRatio
- Process
- ProcessException
- ProcessInfo
- ProcessResult
- ProcessSignal
- ProcessStartMode
- Program
- PushManager
- PushMessageData
- PushSubscription
- PushSubscriptionOptions
- Query
- Queue
- RadioButtonInputElement
- Random
- RandomAccessFile
- Range
- RangeInputElement
- RangeInputElementBase
- RawReceivePort
- RawSecureSocket
- RawServerSocket
- RawSocket
- RawSocketEvent
- RawSocketOption
- RawSynchronousSocket
- RawZLibFilter
- ReadPipe
- ReadyState
- ReceivePort
- Record
- Rect
- Rectangle
- RedirectException
- RedirectInfo
- RegExp
- RegExpMatch
- RelatedApplication
- RemoteError
- Renderbuffer
- RenderingContext
- RenderingContext2
- ReportBody
- ReportingObserver
- ResetButtonInputElement
- ResizeObserver
- ResizeObserverEntry
- ResourceHandle
- RtcCertificate
- RtcIceCandidate
- RtcLegacyStatsReport
- RtcRtpContributingSource
- RtcRtpReceiver
- RtcRtpSender
- RtcSessionDescription
- RtcStatsReport
- RtcStatsResponse
- RuneIterator
- SameSite
- Sampler
- Screen
- ScrollAlignment
- ScrollState
- SearchInputElement
- SecureSocket
- SecurityContext
- Selection
- SendPort
- ServerSocket
- Service
- ServiceExtensionResponse
- ServiceProtocolInfo
- Set
- SetBase
- Shader
- ShaderPrecisionFormat
- SharedArrayBuffer
- SignalException
- Sink
- SizedNativeType
- Socket
- SocketControlMessage
- SocketDirection
- SocketException
- SocketMessage
- SocketOption
- SourceLocation
- SpeechGrammar
- SpeechGrammarList
- SpeechRecognitionAlternative
- SpeechRecognitionResult
- SpeechSynthesisVoice
- SplayTreeMap
- SplayTreeSet
- StackOverflowError
- StackTrace
- StaticRange
- StdinException
- StdioType
- Stdout
- StdoutException
- Stopwatch
- Storage
- StorageManager
- Stream
- StreamConsumer
- StreamController
- StreamIterator
- StreamSink
- StreamSubscription
- StreamTransformer
- StreamTransformerBase
- String
- StringBuffer
- StringConversionSink
- StringList
- StringSink
- Struct
- StyleMedia
- StylePropertyMapReadonly
- StyleSheet
- SubmitButtonInputElement
- Symbol
- Sync
- SynchronousStreamController
- SyncManager
- TelephoneInputElement
- Tests
- TextDetector
- TextInputElement
- TextInputElementBase
- TextMetrics
- TextTrackCueList
- Texture
- TimeInputElement
- Timeline
- TimelineTask
- TimeoutException
- Timer
- TimeRanges
- TimerQueryExt
- TlsException
- TlsProtocolVersion
- Touch
- TouchList
- TrackDefault
- TrackDefaultList
- TransferableTypedData
- Transform
- TransformFeedback
- TransformList
- TreeWalker
- TrustedHtml
- TrustedScriptUrl
- TrustedUrl
- Type
- TypedData
- TypedDataList
- TypedefMirror
- TypeMirror
- Uint8
- Uint8ClampedList
- Uint8List
- Uint16
- Uint16List
- Uint32
- Uint32List
- Uint64
- Uint64List
- UnderlyingSourceBase
- UniformLocation
- Union
- UnitTypes
- Uri
- UriData
- UriPolicy
- UriReference
- Url
- UrlInputElement
- UrlSearchParams
- UrlUtilsReadOnly
- UserTag
- ValidityState
- VarArgs
- VariableMirror
- VertexArrayObject
- VertexArrayObjectOes
- VideoPlaybackQuality
- VideoTrack
- Void
- VRCoordinateSystem
- VRDisplayCapabilities
- VREyeParameters
- VRFrameData
- VRPose
- VRStageBounds
- VRStageBoundsPoint
- VRStageParameters
- VttRegion
- WeakReference
- WebGL
- WebSocket
- WebSocketException
- WebSocketStatus
- WebSocketTransformer
- WeekInputElement
- WindowBase
- WindowBase64
- WorkletAnimation
- WorkletGlobalScope
- WritePipe
- X509Certificate
- XmlSerializer
- XPathEvaluator
- XPathExpression
- XPathNSResolver
- XPathResult
- XsltProcessor
- ZLibOption
- Zone
- ZoneDelegate
- ZoneSpecification
- ZoomAndPan
Constructors
Properties
- hashCode→int
- The hash code for this object.no setter
- runtimeType→Type
- A representation of the runtime type of the object.no setter
Methods
- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.
- toString(
)→String - A string representation of this object.
Operators
- operator ==(
Objectother)→bool - The equality operator.
Static Methods
- hash(
Object?object1,Object?object2, [Object?object3 =sentinelValue,Object?object4 =sentinelValue,Object?object5 =sentinelValue,Object?object6 =sentinelValue,Object?object7 =sentinelValue,Object?object8 =sentinelValue,Object?object9 =sentinelValue,Object?object10 =sentinelValue,Object?object11 =sentinelValue,Object?object12 =sentinelValue,Object?object13 =sentinelValue,Object?object14 =sentinelValue,Object?object15 =sentinelValue,Object?object16 =sentinelValue,Object?object17 =sentinelValue,Object?object18 =sentinelValue,Object?object19 =sentinelValue,Object?object20 =sentinelValue])→int - Creates a combined hash code for a number of objects.
- hashAll(
Iterable< Object?> objects)→int - Creates a combined hash code for a sequence of objects.
- hashAllUnordered(
Iterable< Object?> objects)→int - Creates a combined hash code for a collection of objects.