Created
April 30, 2017 14:00
-
-
Save zidenis/5cf8f8ae92e359fcee5d0a5f2b54f046 to your computer and use it in GitHub Desktop.
Null - Dart implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
part of dart.core; | |
/** | |
* The reserved word [:null:] denotes an object that is the sole instance of | |
* this class. | |
* | |
* It is a compile-time error for a class to attempt to extend or implement | |
* Null. | |
*/ | |
class Null { | |
factory Null._uninstantiable() { | |
throw new UnsupportedError('class Null cannot be instantiated'); | |
} | |
external int get hashCode; | |
/** Returns the string `"null"`. */ | |
String toString() => "null"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment