defines property

DartDefine get defines

Implementation

DartDefine get defines {
  final argResults = this.argResults!;

  final defines = <String>[];
  final files = <String>[];

  if (argResults.wasParsed('dart-define')) {
    defines.addAll(argResults['dart-define'] as List<String>);
  }

  if (argResults.wasParsed('dart-define-from-file')) {
    files.addAll(argResults['dart-define-from-file'] as List<String>);
  }

  return DartDefine.fromFilesAndEntries(
    files: files,
    entries: defines,
    fs: fs,
  );
}