RunException.withArgs constructor Null safety

RunException.withArgs(
  1. String? cmd,
  2. List<String?> args,
  3. int? exitCode,
  4. String reason,
  5. {StackTraceImpl? stackTrace}
)

Implementation

RunException.withArgs(
  String? cmd,
  List<String?> args,
  this.exitCode,
  this.reason, {
  StackTraceImpl? stackTrace,
})  : cmdLine = '$cmd ${args.join(' ')}',
      super(reason, stackTrace);