defaultValue property

InstanceMirror defaultValue

Returns the default value of an optional parameter.

Returns an InstanceMirror on the (compile-time constant) default value for an optional parameter. If no default value is declared, it defaults to null and a mirror of null is returned.

Returns null for a required parameter.

Source

InstanceMirror get defaultValue;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-mirrors/ParameterMirror/defaultValue.html