C2paRsOracleCommand constructor
C2paRsOracleCommand({})
Creates an oracle command with immutable arguments and environment.
Throws ArgumentError when executable or pinnedVersion is blank.
Implementation
C2paRsOracleCommand({
required this.executable,
required Iterable<String> arguments,
required this.pinnedVersion,
Map<String, String> environment = const {},
}) : arguments = List.unmodifiable(arguments),
environment = Map.unmodifiable(environment) {
if (executable.trim().isEmpty || pinnedVersion.trim().isEmpty) {
throw ArgumentError('Executable and pinnedVersion must be non-empty.');
}
}