Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. Null class
Null
description

Null classfinal

The reserved wordnull denotes an object that is the sole instance ofthis class.

TheNull class is the only class which does not implementObject.It is a compile-time error for a class to attempt to extend or implementNull.

The language contains a number of specialized operators for working withnull value. Examples:

e1!       // Throws if e1 is null.e2 ?? e3  // Same as e2, unless e2 is null, then use value of e3x ??= e4  // Same as x unless x is null, then same as `x = e4`.e5?.foo() // call `foo` on e5, unless e5 is null.[...? e6] // spreads e6 into the list literal, unless e6 is null.

Properties

hashCodeint
The hash code for this object.
no setteroverride
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()String
Returns the string"null".
override

Operators

operator ==(Objectother)bool
The equality operator.
inherited
  1. Dart
  2. dart:core
  3. Null class
dart:core library

[8]ページ先頭

©2009-2025 Movatter.jp