Dart API Referencedart:coreNullPointerException

NullPointerException class

class NullPointerException implements Exception {
  const NullPointerException([this.functionName, this.arguments = const []]);
  String toString() {
    if (functionName == null) {
      return exceptionName;
    } else {
      return "$exceptionName : method: '$functionName'\n"
          "Receiver: null\n"
          "Arguments: $arguments";
    }
  }

  String get exceptionName => "NullPointerException";

  final String functionName;
  final List arguments;
}

Implements

Exception

Constructors

const NullPointerException([String functionName, List arguments = const[] ]) #

const NullPointerException([this.functionName, this.arguments = const []]);

Properties

final List arguments #

final List arguments;

final String exceptionName #

String get exceptionName => "NullPointerException";

final String functionName #

final String functionName;

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() {
  if (functionName == null) {
    return exceptionName;
  } else {
    return "$exceptionName : method: '$functionName'\n"
        "Receiver: null\n"
        "Arguments: $arguments";
  }
}