NewInstanceCapability class Null safety

Gives support for reflective invocation of constructors (of all kinds) matching namePattern interpreted as a regular expression.

Constructors with the empty name are considered to have the name 'new'.

Note that this capability implies TypeCapability, because there is no way to perform a newInstance operation without class mirrors.

Inheritance
Implemented types
Implementers

Constructors

NewInstanceCapability(String namePattern)
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
namePattern String
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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