defaultTask property
GrinderTask?
defaultTask
The default task run when no tasks are specified on the command line.
Implementation
GrinderTask? get defaultTask => _defaultTask;
Implementation
set defaultTask(GrinderTask? v) {
// We can't make the argument non-nullable because then it's not a supertype
// of the corresponding getter's return type.
if (v == null) throw ArgumentError('defaultTask may not be set to null.');
if (_defaultTask != null) {
throw GrinderException('Cannot overwrite existing default task '
'$_defaultTask with task $v.');
}
addTask(v);
_defaultTask = v;
}